Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes

Geometry::IndexedShape Class Reference

Inheritance diagram for Geometry::IndexedShape:
ExplicitMarchingCubesSurface Geometry::ExplFaultStickSurface Geometry::ExplPlaneIntersection Geometry::ExplPolygonSurface

List of all members.

Public Member Functions

virtual ~IndexedShape ()
virtual void setCoordList (Coord3List *cl, Coord3List *nl=0, Coord3List *texturecoords=0)
virtual bool needsUpdate () const
virtual bool update (bool forceall, TaskRunner *=0)
virtual void setRightHandedNormals (bool)
virtual void removeAll ()
virtual bool createsNormals () const
virtual bool createsTextureCoords () const
const ObjectSet
< IndexedGeometry > & 
getGeometry () const
const Coord3List * coordList () const
Coord3List * coordList ()
int getVersion () const

Protected Member Functions

 IndexedShape ()
void addVersion ()

Protected Attributes

Threads::ReadWriteLock geometrieslock_
ObjectSet< IndexedGeometrygeometries_
Coord3List * coordlist_
Coord3List * normallist_
Coord3List * texturecoordlist_
bool righthandednormals_

Private Attributes

int version_

Detailed Description

Defines a shape with coodinates and connections between them. The shape is defined in an ObjectSet of IndexedGeometry. All IndexedGeometry share one common coordinate and normal list.


Constructor & Destructor Documentation

virtual Geometry::IndexedShape::~IndexedShape (  )  [virtual]
Geometry::IndexedShape::IndexedShape (  )  [protected]

Member Function Documentation

void Geometry::IndexedShape::addVersion (  )  [protected]

Should be called every time object is changed.

Coord3List* Geometry::IndexedShape::coordList (  )  [inline]
const Coord3List* Geometry::IndexedShape::coordList (  )  const [inline]
virtual bool Geometry::IndexedShape::createsNormals (  )  const [inline, virtual]
virtual bool Geometry::IndexedShape::createsTextureCoords (  )  const [inline, virtual]
const ObjectSet<IndexedGeometry>& Geometry::IndexedShape::getGeometry (  )  const
int Geometry::IndexedShape::getVersion (  )  const [inline]
virtual bool Geometry::IndexedShape::needsUpdate (  )  const [inline, virtual]
virtual void Geometry::IndexedShape::removeAll (  )  [virtual]
virtual void Geometry::IndexedShape::setCoordList ( Coord3List *  cl,
Coord3List *  nl = 0,
Coord3List *  texturecoords = 0 
) [virtual]
virtual void Geometry::IndexedShape::setRightHandedNormals ( bool   )  [virtual]
virtual bool Geometry::IndexedShape::update ( bool  forceall,
TaskRunner = 0 
) [inline, virtual]

Member Data Documentation

Coord3List* Geometry::IndexedShape::coordlist_ [protected]
Coord3List* Geometry::IndexedShape::normallist_ [protected]