plane Class Reference

Basic plane class. More...

#include <plane.h>

List of all members.

Public Member Functions

 plane ()
void setLabel (long l)
long getLabel ()
void setNormal (double x, double y, double z)
void setNormal (vector3d n)
vector3d getNormal ()
double * getParameters ()
void setOrigin (double x, double y, double z)
void setOrigin (vector3d o)
vector3d getOrigin ()
void setDrawn (bool d)
bool isDrawn ()
void offset (double distance)


Detailed Description

Basic plane class.

Attributes and methods for a plane in space Plane normal and origin is stored


Constructor & Destructor Documentation

plane::plane (  ) 

Standard Constructor creates a xy-plane at the global origin


Member Function Documentation

void plane::setLabel ( long  l  ) 

Sets the label of the plane to label

long plane::getLabel (  ) 

Returns the label of the plane

void plane::setNormal ( double  x,
double  y,
double  z 
)

Sets the normal of the plane

void plane::setNormal ( vector3d  n  ) 

Sets the normal of the plane

vector3d plane::getNormal (  ) 

Returns the normal of the plane

double * plane::getParameters (  ) 

Returns the parameters of the plane for cutting plane calculations

void plane::setOrigin ( double  x,
double  y,
double  z 
)

Sets the origin of the plane

void plane::setOrigin ( vector3d  o  ) 

Sets the origin of the plane

vector3d plane::getOrigin (  ) 

Returns the origin of the plane

void plane::setDrawn ( bool  d  ) 

Defines wether a plane should be drawn

bool plane::isDrawn (  ) 

Returns wether a plane should be drawn

void plane::offset ( double  distance  ) 

Moves the plane in normal direction


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

Generated on Tue Nov 25 13:20:51 2008 for Candy Store by  doxygen 1.5.6