vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SnapObject Class Reference

#include <SnapObject.h>

Public Member Functions

 SnapObject ()
 
 SnapObject (int id)
 
 SnapObject (int id, vrecko::EnvironmentObject *eo)
 
 ~SnapObject ()
 
void setId (unsigned long ID)
 
unsigned long getId ()
 
void setEo (vrecko::EnvironmentObject *eo)
 
vrecko::EnvironmentObjectgetEo ()
 
void setDirtyGraph (bool dirty)
 
bool getDirtyGraph ()
 
void setDirtyMaxDistance (bool dirty)
 
bool getDirtyMaxDistance ()
 
void setDirtySnappingRegion (bool dirty)
 
bool getDirtySnappingRegion ()
 
void setDirtyBoundaryLoop (bool dirty)
 
bool getDirtyBoundaryLoop ()
 
void setDirtyClosestPoint (bool dirty)
 
bool getDirtyClosestPoint ()
 
void setDirtyAll (bool dirty)
 
void setChoosenBoundaryLoop (unsigned long position)
 
unsigned long getChoosenBoundaryLoop ()
 
osg::Geode * getGeode ()
 
osg::Geode * getGeodeOf (osg::Node *eo)
 
osg::Geometry * getGeometry ()
 
osg::Vec3Array * getVertices ()
 
osg::Vec4Array * getColors ()
 
osg::Vec3Array * getNormals ()
 
osg::DrawElementsUShort * getFaces ()
 
osg::PrimitiveSet * getPrimitiveSet ()
 
vector< vector< int > > * getBoundaryLoops ()
 
vector< vector< int > > * findBoundaryLoops ()
 
vector< int > getBoundaryLoop ()
 
vector< osg::Vec3 > getBoundaryLoopCentroids ()
 
bool chooseBoundaryLoop (SnapObject *object)
 
vector< map< int, int > > * getGraph ()
 
vector< map< int, int > > * createGraph ()
 
vector< set< int > > * getSimpleGraph ()
 
vector< set< int > > * createSimpleGraph ()
 
vector< int > getSnapRegion ()
 
vector< int > getClosestPoint (SnapObject *object)
 
vector< int > findClosestPoint (SnapObject *object)
 
vector< int > getClosestSnappingRegionPoints (SnapObject *object)
 
vector< int > findClosestSnappingRegionPoints (SnapObject *object)
 
vector< int > getSnappingRegion ()
 
vector< float > * getSnappingRegionValues ()
 
float getMaxDistance ()
 
vector< int > getSnapRegionWithDistanceSet ()
 
vector< int > findShortestPath (int pointA, int pointB)
 
void updateDisplayList ()
 
void deleteFromScene ()
 
void recomputeNormal ()
 
bool erasePoints (vector< int > &boundaryLoopToErase, vector< int > &eraseLoop)
 
bool erasePointsAndAllFaces (vector< int > &boundaryLoopToErase, vector< int > &eraseLoop)
 
bool mergeObject (SnapObject *object)
 
int findClosestPoint (osg::Vec3 point)
 
set< int > getPartOfObject (int seed, set< int > cuttingLoopSet)
 
bool isSuitable ()
 
void optimalizeLoop (vector< int > &loop)
 

Constructor & Destructor Documentation

SnapObject::SnapObject ( )
SnapObject::SnapObject ( int  id)
SnapObject::SnapObject ( int  id,
vrecko::EnvironmentObject eo 
)
SnapObject::~SnapObject ( )

Member Function Documentation

bool SnapObject::chooseBoundaryLoop ( SnapObject object)
vector< map< int, int > > * SnapObject::createGraph ( )
vector< set< int > > * SnapObject::createSimpleGraph ( )
void SnapObject::deleteFromScene ( )
bool SnapObject::erasePoints ( vector< int > &  boundaryLoopToErase,
vector< int > &  eraseLoop 
)
bool SnapObject::erasePointsAndAllFaces ( vector< int > &  boundaryLoopToErase,
vector< int > &  eraseLoop 
)
vector< vector< int > > * SnapObject::findBoundaryLoops ( )
vector< int > SnapObject::findClosestPoint ( SnapObject object)
int SnapObject::findClosestPoint ( osg::Vec3  point)
vector< int > SnapObject::findClosestSnappingRegionPoints ( SnapObject object)
vector< int > SnapObject::findShortestPath ( int  pointA,
int  pointB 
)
vector< int > SnapObject::getBoundaryLoop ( )
vector< osg::Vec3 > SnapObject::getBoundaryLoopCentroids ( )
vector< vector< int > > * SnapObject::getBoundaryLoops ( )
unsigned long SnapObject::getChoosenBoundaryLoop ( )
vector< int > SnapObject::getClosestPoint ( SnapObject object)
vector<int> SnapObject::getClosestSnappingRegionPoints ( SnapObject object)
osg::Vec4Array * SnapObject::getColors ( )
bool SnapObject::getDirtyBoundaryLoop ( )
bool SnapObject::getDirtyClosestPoint ( )
bool SnapObject::getDirtyGraph ( )
bool SnapObject::getDirtyMaxDistance ( )
bool SnapObject::getDirtySnappingRegion ( )
vrecko::EnvironmentObject * SnapObject::getEo ( )
osg::DrawElementsUShort * SnapObject::getFaces ( )
osg::Geode * SnapObject::getGeode ( )
osg::Geode * SnapObject::getGeodeOf ( osg::Node *  eo)
osg::Geometry * SnapObject::getGeometry ( )
vector< map< int, int > > * SnapObject::getGraph ( )
unsigned long SnapObject::getId ( )
float SnapObject::getMaxDistance ( )
osg::Vec3Array * SnapObject::getNormals ( )
set< int > SnapObject::getPartOfObject ( int  seed,
set< int >  cuttingLoopSet 
)
osg::PrimitiveSet * SnapObject::getPrimitiveSet ( )
vector< set< int > > * SnapObject::getSimpleGraph ( )
vector< int > SnapObject::getSnappingRegion ( )
vector< float > * SnapObject::getSnappingRegionValues ( )
vector< int > SnapObject::getSnapRegion ( )
vector< int > SnapObject::getSnapRegionWithDistanceSet ( )
osg::Vec3Array * SnapObject::getVertices ( )
bool SnapObject::isSuitable ( )
bool SnapObject::mergeObject ( SnapObject object)
void SnapObject::optimalizeLoop ( vector< int > &  loop)
void SnapObject::recomputeNormal ( )
void SnapObject::setChoosenBoundaryLoop ( unsigned long  position)
void SnapObject::setDirtyAll ( bool  dirty)
void SnapObject::setDirtyBoundaryLoop ( bool  dirty)
void SnapObject::setDirtyClosestPoint ( bool  dirty)
void SnapObject::setDirtyGraph ( bool  dirty)
void SnapObject::setDirtyMaxDistance ( bool  dirty)
void SnapObject::setDirtySnappingRegion ( bool  dirty)
void SnapObject::setEo ( vrecko::EnvironmentObject eo)
void SnapObject::setId ( unsigned long  ID)
void SnapObject::updateDisplayList ( )

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