Public Member Functions | Protected Member Functions | Protected Attributes

Geometry::ExplPlaneIntersection Class Reference

Inheritance diagram for Geometry::ExplPlaneIntersection:
Geometry::IndexedShape CallBacker

List of all members.

Public Member Functions

 ExplPlaneIntersection ()
 ~ExplPlaneIntersection ()
int nrPlanes () const
int planeID (int idx) const
const Coord3planeNormal (int id) const
const TypeSet< Coord3 > & planePolygon (int id) const
int addPlane (const Coord3 &normal, const TypeSet< Coord3 > &)
bool setPlane (int id, const Coord3 &, const TypeSet< Coord3 > &)
void removePlane (int id)
void setShape (const IndexedShape &)
const IndexedShapegetShape () const
bool needsUpdate () const
void removeAll ()
void setZScale (float nz)
float getZScale () const

Protected Member Functions

bool update (bool forceall, TaskRunner *)

Protected Attributes

const IndexedShapeshape_
int shapeversion_
bool needsupdate_
IndexedGeometryintersection_
TypeSet< int > planeids_
ObjectSet< TypeSet< Coord3 > > planepts_
TypeSet< Coord3planenormals_
float zscale_

Detailed Description

Class that represents the line in the intersection between an IndexedShape and one ore many planes.


Constructor & Destructor Documentation

Geometry::ExplPlaneIntersection::ExplPlaneIntersection (  ) 
Geometry::ExplPlaneIntersection::~ExplPlaneIntersection (  ) 

Member Function Documentation

int Geometry::ExplPlaneIntersection::addPlane ( const Coord3 normal,
const TypeSet< Coord3 > &   
)
const IndexedShape* Geometry::ExplPlaneIntersection::getShape (  )  const
float Geometry::ExplPlaneIntersection::getZScale (  )  const [inline]
bool Geometry::ExplPlaneIntersection::needsUpdate (  )  const
int Geometry::ExplPlaneIntersection::nrPlanes (  )  const
int Geometry::ExplPlaneIntersection::planeID ( int  idx  )  const
const Coord3& Geometry::ExplPlaneIntersection::planeNormal ( int  id  )  const
const TypeSet<Coord3>& Geometry::ExplPlaneIntersection::planePolygon ( int  id  )  const
void Geometry::ExplPlaneIntersection::removeAll (  ) 
void Geometry::ExplPlaneIntersection::removePlane ( int  id  ) 
bool Geometry::ExplPlaneIntersection::setPlane ( int  id,
const Coord3 ,
const TypeSet< Coord3 > &   
)
void Geometry::ExplPlaneIntersection::setShape ( const IndexedShape  ) 

Is assumed to remain in memory.

void Geometry::ExplPlaneIntersection::setZScale ( float  nz  )  [inline]
bool Geometry::ExplPlaneIntersection::update ( bool  forceall,
TaskRunner  
) [protected]

Member Data Documentation