class vxtPolygon : public vxtPlanarObject

Polygonal patch.

Inheritance:


Public Methods

vxtPolygon(Vector3D const *v, int n, int s=-1, int m = VXT_SURFACE, RGBColor cc=RGBColor(1))
Constructor -- if s >=0, skip the s-th vertex
vxtPolygon(float const *v[3], int n, int m = VXT_SURFACE, RGBColor cc=RGBColor(1))
Constructor
vxtPolygon(void)
Default constructor (to enable arrays of polygons )
vxtPolygon(vxtPolygon const &other)
copy constructor
~vxtPolygon()
destructor
vxtPolygon const& operator=(vxtPolygon const &other)
overloaded assignment
virtual vxtObject3D* Dup() const
duplicate the object
virtual void Voxelize(vxtGrid3D& gr, const csgOp op=VXT_OR) const
Voxelize the object
int getNVert(void) const
get number of vertices
Vector3D& getVert(int i) const
get i-th vertex of the polygon
virtual void Describe() const
Print out object properties

Inherited from vxtPlanarObject:

Public Methods

void setVolStyle(int const m)
int getVolStyle(void) const

Inherited from vxtPrimitive:

Public

Basic methods

vxtPrimitive(const RGBColor& v)
Constructor
virtual void Describe() const
Print out object properties

Color manipulation

void setColor(RGBColor const& c)
set object color
RGBColor const& getColor(void) const
get object color

Implementation of GSC operations

vxtAggregate operator+(const vxtObject3D& b) const
Create an aggregate by addition - OR of two objects
vxtAggregate operator-(const vxtObject3D& b) const
Create an aggregate by subtracting two objects
vxtAggregate operator*(const vxtObject3D& b) const
Create an aggregate by multiplication - AND of two objects

Inherited from vxtObject3D:

Public

Methods dealing with object transformations

void Transform(Matrix const& tm, Vector3D const& P)
Object transformation with respect to a Point P
void Transform(Matrix const& tm)
Object transformation with respect to (0,0,0)
void Transform(const vxtObject3D& o)
Apply transformation matrix of some other object
Vector3D obj2world(Vector3D const &p) const
Transform point from object coordinates to world coordinates
Vector3D world2obj(Vector3D const &p) const
Transform point from world coordinates to object coordinates
void printMatrix(void) const
print transformation matrix

Virtual methods to be implemented by descendants

virtual void Voxelize(vxtGrid3D& gr, const csgOp op) const
Voxelize the object and add it to the grid gr
virtual vxtObject3D* Dup() const
Duplicate the object
virtual Vector3D minBBox()
get minimal corner of a bounding box
virtual Vector3D maxBBox()
get maximal corner of a bounding box
virtual void Describe() const
Print out object properties

Inherited from vxtBase:


Documentation

Polygonal patch.
vxtPolygon(Vector3D const *v, int n, int s=-1, int m = VXT_SURFACE, RGBColor cc=RGBColor(1))
Constructor -- if s >=0, skip the s-th vertex

vxtPolygon(float const *v[3], int n, int m = VXT_SURFACE, RGBColor cc=RGBColor(1))
Constructor

vxtPolygon(void)
Default constructor (to enable arrays of polygons )

vxtPolygon(vxtPolygon const &other)
copy constructor

~vxtPolygon()
destructor

vxtPolygon const& operator=(vxtPolygon const &other)
overloaded assignment

virtual vxtObject3D* Dup() const
duplicate the object

virtual void Voxelize(vxtGrid3D& gr, const csgOp op=VXT_OR) const
Voxelize the object

int getNVert(void) const
get number of vertices

Vector3D& getVert(int i) const
get i-th vertex of the polygon

virtual void Describe() const
Print out object properties


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de