OpenGLPrakt --> cObject --> cVisibleObject --> cInteractiveObject --> cPlane --> cHoledPlane
Simple plane object.
This object displays a simple plane, either solid or wireframed. Further, a display list is used to draw the plane. The plane starts at (-size_x/2,-size_y/2,0) and extends to (size_x/2, size_y/2, 0) Texture coordinates are generated also. (default: (0.0,0.0)-(1.0,1.0))
public cHoledPlane ( cEventDispatcher * disp , const char * name = NULL ) ;
default constructor w/ optional object name
name | name of object (optional) |
public cHoledPlane ( cEventDispatcher * disp , GLdouble size_x , GLdouble size_y , const char * name = NULL ) ;
constructor w/ size and object name
size_x | (GLdouble) x side length of plane (default: 1.0) |
size_y | (GLdouble) y side length of plane (default: 1.0) |
name | name of object (optional)
If any of the hole percentages is < 0 or > 100, the plane will not have a hole. |
public cHoledPlane ( cEventDispatcher * disp , GLdouble size_x , GLdouble size_y , GLfloat hole_start_percent_x , GLfloat hole_end_percent_x , GLfloat hole_start_percent_y , GLfloat hole_end_percent_y , const char * name = NULL ) ;
constructor w/ size, hole and object name
size_x | (GLdouble) x side length of plane (default: 1.0) |
size_y | (GLdouble) y side length of plane (default: 1.0) |
hole_start_percent_x | where does the hole start in x direction? |
hole_end_percent_x | where does the hole end in x direction? |
hole_start_percent_y | where does the hole start in x direction? |
hole_end_percent_y | where does the hole end in x direction? |
name | name of object (optional)
If any of the hole percentages is < 0 or > 100, the plane will not have a hole. |
public cHoledPlane ( cEventDispatcher * disp , GLdouble size_x , GLdouble size_y , GLfloat hole_start_percent_x , GLfloat hole_end_percent_x , GLfloat hole_start_percent_y , GLfloat hole_end_percent_y , tePlaneType solid , const char * name = NULL ) ;
default constructor
size_x | (GLdouble) x side length of plane (default: 1.0) |
size_y | (GLdouble) y side length of plane (default: 1.0) |
hole_start_percent_x | where does the hole start in x direction? |
hole_end_percent_x | where does the hole end in x direction? |
hole_start_percent_y | where does the hole start in x direction? |
hole_end_percent_y | where does the hole end in x direction? |
solid | (tePlaneType) draw solid or wireframe plane (default: solid) |
name | name of object (optional) |
public cHoledPlane ( cEventDispatcher * disp , GLdouble size_x , GLdouble size_y , GLfloat hole_start_percent_x , GLfloat hole_end_percent_x , GLfloat hole_start_percent_y , GLfloat hole_end_percent_y , tePlaneType solid , int resolution , const char * name = NULL ) ;
default constructor
size_x | (GLdouble) x side length of plane (default: 1.0) |
size_y | (GLdouble) y side length of plane (default: 1.0) |
hole_start_percent_x | where does the hole start in x direction? |
hole_end_percent_x | where does the hole end in x direction? |
hole_start_percent_y | where does the hole start in x direction? |
hole_end_percent_y | where does the hole end in x direction? |
solid | (tePlaneType) draw solid or wireframe plane (default: solid) |
resolution | subdivisions per side |
name | name of object (optional) |
public virtual ~ cHoledPlane ( ) ;
destructor
protected GLfloat mHoleFromX
size and pos. of the hole (all in percent!) (<0 => not used)
protected GLfloat mHoleToX
protected GLfloat mHoleFromY
protected GLfloat mHoleToY
protected virtual const char * GetDefaultName ( ) const ;
return class name
protected virtual void MakeSolidPlane ( ) ;
create solid plane at given resolution
protected virtual void MakeWirePlane ( ) ;
create wire framed plane at given resolution
This documentation was generated automatically by the ccdoc tool (version 0.7a).
Click here to submit a bug report or feature request.
Click here to return to the top of the page.