article

Paul Toone avatar image
0 Likes"
Paul Toone posted

OnDraw Trigger   

Overview:

This function is executed prior to the object's OnDraw Event. It is used to perform user-defined drawing commands and animation. If this function returns 1, the object's standard OnDraw function is not called. If it returns 0, OnDraw occurs normally. FlexScript, C++, and/or OpenGL code can be used to define what is drawn.

Common Commands:

drawcolumn(xloc,yloc,zloc,nrsides,baseradius,topradius,height,xrot,yrot,zrot,red,green,blue[,opacity,texture,xrep,yrep])

drawcube(xloc,yloc,zloc,xsize,ysize,zsize,xrot,yrot,zrot,red,green,blue[,opacity,texture,xrep,yrep])

drawcylinder(xloc,yloc,zloc,baseradius,topradius,height,xrot,yrot,zrot,red,green,blue[,opacity,texture])

drawdisk(xloc,yloc,zloc,innerradius,outerradius,startangle,sweepangle,xrot,yrot,zrot,red,green,blue[,opacity,texture])

drawline(view,x1,y1,z1,x2,y2,z2,red,green,blue)

drawobject(view,shape,texture)

drawrectangle(xloc,yloc,zloc,length,width,xrot,yrot,zrot,red,green,blue[,opacity,texture,xrep,yrep])

drawsphere(xloc,yloc,zloc,radius,red,green,blue[,opacity,texture])

drawtext(view,text,xloc,yloc,zloc,width,height,thickness[,xrot,yrot,zrot,red,green,blue,opacity])

drawtomodelscale(object)

drawtoobjectscale(object)

drawtriangle(view,x1,y1,z1,x2,y2,z2,x3,y3,z3,red,green,blue)

spacerotate(x,y,z)

spacescale(x,y,z)

spacetranslate(x,y,z)


Access variables:

current: the current object

view: the view that the object is being drawn in



flexsim users manualusers manual
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Article

Contributors

paul.t contributed to this article

Navigation

FlexSim 2016.1