OpenGLPrakt --> cObject --> cVisibleObject --> cInteractiveObject --> cPlane --> cHoledPlane

class cHoledPlane
    extends cPlane as public

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))

Source:
../src/cHoledPlane.hh:36

Constructors Index

cHoledPlane
[public] default constructor w/ optional object name
cHoledPlane
[public] constructor w/ size and object name
cHoledPlane
[public] constructor w/ size, hole and object name
cHoledPlane
[public] default constructor
cHoledPlane
[public] default constructor
~cHoledPlane
[public] destructor


Variables Index

mHoleFromX
[protected] size and pos. of the hole (all in percent!) (<0 => not used)
mHoleFromY
[protected]
mHoleToX
[protected]
mHoleToY
[protected]


Methods Index

GetDefaultName
[protected] return class name
MakeSolidPlane
[protected] create solid plane at given resolution
MakeWirePlane
[protected] create wire framed plane at given resolution


Constructors

cHoledPlane

public cHoledPlane ( cEventDispatcher * disp ,
                     const char * name = NULL ) ;

default constructor w/ optional object name

Parameters:
name name of object (optional)

cHoledPlane

public cHoledPlane ( cEventDispatcher * disp ,
                     GLdouble size_x ,
                     GLdouble size_y ,
                     const char * name = NULL ) ;

constructor w/ size and object name

Parameters:
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.

cHoledPlane

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

Parameters:
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.

cHoledPlane

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

Parameters:
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)

cHoledPlane

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

Parameters:
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)

cHoledPlane

public virtual ~ cHoledPlane ( ) ;

destructor


Variables

mHoleFromX

protected GLfloat mHoleFromX

size and pos. of the hole (all in percent!) (<0 => not used)

mHoleToX

protected GLfloat mHoleToX

mHoleFromY

protected GLfloat mHoleFromY

mHoleToY

protected GLfloat mHoleToY


Methods

GetDefaultName

protected virtual const char * GetDefaultName ( ) const ;

return class name

MakeSolidPlane

protected virtual void MakeSolidPlane ( ) ;

create solid plane at given resolution

MakeWirePlane

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.