Choreonoid  1.8
Public Types | Public Member Functions | List of all members
cnoid::SgUpdate Class Reference

#include <SceneUpdate.h>

Inheritance diagram for cnoid::SgUpdate:
cnoid::SgTmpUpdate

Public Types

enum  Action {
  None = 0, Added = 1 << 0, Removed = 1 << 1, GeometryModified = 1 << 2,
  AppearanceModified = 1 << 3, Modified = GeometryModified | AppearanceModified, NONE = None, ADDED = Added,
  REMOVED = Removed, MODIFIED = Modified, BBOX_UPDATED = GeometryModified
}
 
typedef std::vector< SgObject * > Path
 

Public Member Functions

 SgUpdate ()
 
 SgUpdate (int action)
 
 SgUpdate (const SgUpdate &org)
 
 ~SgUpdate ()
 
void setInitialPathCapacity (unsigned char n)
 
void reservePathCapacity (int n)
 
int action () const
 
bool hasAction (int act) const
 
SgUpdatewithAction (int act)
 
void setAction (int act)
 
void addAction (int act)
 
const Pathpath () const
 
void pushNode (SgObject *node)
 
void popNode ()
 
void clearPath ()
 
void resetAction (int act=None)
 
void clear ()
 

Member Typedef Documentation

◆ Path

typedef std::vector<SgObject*> cnoid::SgUpdate::Path

Member Enumeration Documentation

◆ Action

Enumerator
None 
Added 
Removed 
GeometryModified 
AppearanceModified 
Modified 
NONE 
ADDED 
REMOVED 
MODIFIED 
BBOX_UPDATED 

Constructor & Destructor Documentation

◆ SgUpdate() [1/3]

cnoid::SgUpdate::SgUpdate ( )
inline

◆ SgUpdate() [2/3]

cnoid::SgUpdate::SgUpdate ( int  action)
inline

◆ SgUpdate() [3/3]

cnoid::SgUpdate::SgUpdate ( const SgUpdate org)
inline

◆ ~SgUpdate()

cnoid::SgUpdate::~SgUpdate ( )
inline

Member Function Documentation

◆ action()

int cnoid::SgUpdate::action ( ) const
inline

◆ addAction()

void cnoid::SgUpdate::addAction ( int  act)
inline

◆ clear()

void cnoid::SgUpdate::clear ( )
inline

◆ clearPath()

void cnoid::SgUpdate::clearPath ( )
inline

◆ hasAction()

bool cnoid::SgUpdate::hasAction ( int  act) const
inline

◆ path()

const Path& cnoid::SgUpdate::path ( ) const
inline

◆ popNode()

void cnoid::SgUpdate::popNode ( )
inline

◆ pushNode()

void cnoid::SgUpdate::pushNode ( SgObject node)
inline

◆ reservePathCapacity()

void cnoid::SgUpdate::reservePathCapacity ( int  n)
inline

◆ resetAction()

void cnoid::SgUpdate::resetAction ( int  act = None)
inline

◆ setAction()

void cnoid::SgUpdate::setAction ( int  act)
inline

◆ setInitialPathCapacity()

void cnoid::SgUpdate::setInitialPathCapacity ( unsigned char  n)
inline

◆ withAction()

SgUpdate& cnoid::SgUpdate::withAction ( int  act)
inline

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