BALL  1.4.79
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Public Member Functions | Public Attributes | List of all members
BALL::VIEW::QuadMesh Class Reference

#include <BALL/VIEW/PRIMITIVES/quadMesh.h>

Inheritance diagram for BALL::VIEW::QuadMesh:
BALL::VIEW::GeometricObject BALL::VIEW::MultiColorExtension

Classes

struct  Quadruple
 

Public Member Functions

 QuadMesh ()
 
 QuadMesh (const QuadMesh &mesh)
 Copy constructor. More...
 
 ~QuadMesh ()
 
virtual void getVertices (vector< Vector3 > &vertices) const
 
- Public Member Functions inherited from BALL::VIEW::GeometricObject
 GeometricObject ()
 
 GeometricObject (const GeometricObject &object)
 
virtual ~GeometricObject ()
 
virtual void clear ()
 
void set (const GeometricObject &object)
 
GeometricObjectoperator= (const GeometricObject &object)
 
void swap (GeometricObject &object)
 
void setComposite (const Composite *composite)
 
const CompositegetComposite () const
 
virtual bool isValid () const
 
virtual void dump (std::ostream &s=std::cout, Size depth=0) const
 
void setColor (const ColorRGBA &color)
 
void setColor (const ColorUnit &red, const ColorUnit &green, const ColorUnit &blue, const ColorUnit &alpha=(float) 1)
 
const ColorRGBAgetColor () const
 
ColorRGBAgetColor ()
 
void getColor (ColorUnit &red, ColorUnit &green, ColorUnit &blue, ColorUnit &alpha) const
 
void getColors (HashSet< String > &colors)
 Insert the colors of this object into the hashset. More...
 
bool operator== (const GeometricObject &object) const
 Needed for MSVC. More...
 
bool operator< (const GeometricObject &object) const
 Needed for MSVC. More...
 
- Public Member Functions inherited from BALL::VIEW::MultiColorExtension
 MultiColorExtension ()
 
 MultiColorExtension (const MultiColorExtension &color_extension)
 
virtual ~MultiColorExtension ()
 
virtual void clear ()
 
void set (const MultiColorExtension &color_extension)
 
const MultiColorExtensionoperator= (const MultiColorExtension &color_extension)
 
void swap (MultiColorExtension &color_extension)
 
void setColors (const vector< ColorRGBA > &colors)
 
vector< ColorRGBA > & getColors ()
 
const vector< ColorRGBA > & getColors () const
 
void setAlphas (Size alpha)
 Set the alpha values for all colors. More...
 
virtual void dump (std::ostream &s=std::cout, Size depth=0) const
 

Public Attributes

vector< Vector3vertex
 
vector< Vector3normal
 
vector< Quadruplequad
 
- Public Attributes inherited from BALL::VIEW::MultiColorExtension
vector< ColorRGBAcolors
 

Detailed Description

QuadMesh class. An instance of QuadMesh represents an mesh with quadruples.

Definition at line 27 of file quadMesh.h.

Constructor & Destructor Documentation

BALL::VIEW::QuadMesh::QuadMesh ( )

Default Constructor. The properties of this mesh are set to:

  • color - to the color black
BALL::VIEW::QuadMesh::QuadMesh ( const QuadMesh mesh)

Copy constructor.

BALL::VIEW::QuadMesh::~QuadMesh ( )
inline

Definition at line 58 of file quadMesh.h.

Member Function Documentation

virtual void BALL::VIEW::QuadMesh::getVertices ( vector< Vector3 > &  vertices) const
inlinevirtual

Reimplemented from BALL::VIEW::GeometricObject.

Definition at line 61 of file quadMesh.h.

Member Data Documentation

vector<Vector3> BALL::VIEW::QuadMesh::normal

Definition at line 68 of file quadMesh.h.

vector<Quadruple> BALL::VIEW::QuadMesh::quad

Definition at line 69 of file quadMesh.h.

vector<Vector3> BALL::VIEW::QuadMesh::vertex

The colors belonging to each vertex. If this list has less entries than there are vertices in this mesh, we take the first element to color the whole mesh. If it is empty, we use the color white.

Definition at line 67 of file quadMesh.h.