ContRap-Libraries
Public Member Functions

crp::GLPlane Class Reference

Class GLPlane represents planes in the three-dimensional space. More...

#include <glplane.h>

Inheritance diagram for crp::GLPlane:
crp::GLPrimitive

Public Member Functions

 GLPlane (const GLVertex &position=GLVertex(), double dx=0.0, double dy=1.0, double dz=0.0, double w=10.0)
 Constructor from the coordinates of the plane.
 ~GLPlane ()
 Destructor.
void make_display_list (int flags) const
 Draws the point into an OpenGL display list.
GLPrimitiveType get_type () const
 Type of the primitive.

Detailed Description

Class GLPlane represents planes in the three-dimensional space.

Planes are given a center point for drawing purposes.


Constructor & Destructor Documentation

crp::GLPlane::GLPlane ( const GLVertex position = GLVertex(),
double  dx = 0.0,
double  dy = 1.0,
double  dz = 0.0,
double  w = 10.0 
)

Constructor from the coordinates of the plane.

Parameters:
positionPosition of the primitive
dxX-coordinate of the normal vector
dyY-coordinate of the normal vector
dzZ-coordinate of the normal vector
wWidth of the square symmetric window to evaluate the plane
crp::GLPlane::~GLPlane ( )

Destructor.


Member Function Documentation

GLPrimitiveType crp::GLPlane::get_type ( ) const [inline, virtual]

Type of the primitive.

Returns:
Type name of the primitive

Implements crp::GLPrimitive.

void crp::GLPlane::make_display_list ( int  flags) const [virtual]

Draws the point into an OpenGL display list.

Parameters:
flagsStyle flags used to filter out drawing

Implements crp::GLPrimitive.


The documentation for this class was generated from the following file: