Choreonoid  1.5
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
cnoid::PointSetItem Class Reference

#include <PointSetItem.h>

Inheritance diagram for cnoid::PointSetItem:
cnoid::Item cnoid::SceneProvider cnoid::Referenced

Public Types

enum  RenderingMode { POINT, VOXEL, N_RENDERING_MODES }
 
- Public Types inherited from cnoid::Item
enum  Attribute { SUB_ITEM, TEMPORAL, LOAD_ONLY, NUM_ATTRIBUTES }
 

Public Member Functions

 PointSetItem ()
 
 PointSetItem (const PointSetItem &org)
 
virtual ~PointSetItem ()
 
virtual void setName (const std::string &name)
 
virtual SgNodegetScene ()
 
const SgPointSetpointSet () const
 
SgPointSetpointSet ()
 
virtual void notifyUpdate ()
 
const Affine3offsetTransform () const
 
void setOffsetTransform (const Affine3 &T)
 
SignalProxy< void(const Affine3 &T)> sigOffsetTransformChanged ()
 
void notifyOffsetTransformChange ()
 
SgPointSetgetTransformedPointSet () const
 
void setRenderingMode (int mode)
 
int renderingMode () const
 
void setPointSize (double size)
 
double pointSize () const
 
double voxelSize () const
 
void setVoxelSize (double size)
 
void setEditable (bool on)
 
bool isEditable () const
 
int numAttentionPoints () const
 
Vector3 attentionPoint (int index) const
 
void clearAttentionPoints ()
 
void addAttentionPoint (const Vector3 &p)
 
SignalProxy< void()> sigAttentionPointsChanged ()
 
void notifyAttentionPointChange ()
 
boost::optional< Vector3attentionPoint () const
 
SignalProxy< void()> sigAttentionPointChanged ()
 
void clearAttentionPoint ()
 
void setAttentionPoint (const Vector3 &p)
 
void removePoints (const PolyhedralRegion &region)
 
SignalProxy< void(const PolyhedralRegion &region)> sigPointsInRegionRemoved ()
 
virtual bool store (Archive &archive)
 
virtual bool restore (const Archive &archive)
 
- Public Member Functions inherited from cnoid::Item
virtual ~Item ()
 
const std::string & name () const
 
bool hasAttribute (Attribute attribute) const
 
ItemchildItem () const
 
ItemprevItem () const
 
ItemnextItem () const
 
ItemparentItem () const
 
bool addChildItem (Item *item, bool isManualOperation=false)
 
bool addSubItem (Item *item)
 
bool isSubItem () const
 
void detachFromParentItem ()
 
void emitSigDetachedFromRootForSubTree ()
 
bool insertChildItem (Item *item, Item *nextItem, bool isManualOperation=false)
 
bool insertSubItem (Item *item, Item *nextItem)
 
bool isTemporal () const
 
void setTemporal (bool on=true)
 
RootItemfindRootItem () const
 
ItemfindItem (const std::string &path) const
 
template<class ItemType >
ItemType * findItem (const std::string &path) const
 
template<class ItemType >
ItemType * find (const std::string &path)
 
ItemfindChildItem (const std::string &path) const
 
template<class ItemType >
ItemType * findChildItem (const std::string &path) const
 
ItemfindSubItem (const std::string &path) const
 
template<class ItemType >
ItemType * findSubItem (const std::string &path) const
 
ItemheadItem () const
 
template<class ItemType >
ItemType * findOwnerItem (bool includeSelf=false)
 
bool isOwnedBy (Item *item) const
 
bool traverse (boost::function< bool(Item *)> function)
 
template<class ItemType >
bool traverse (boost::function< bool(ItemType *item)> function)
 
Itemduplicate () const
 
ItemduplicateAll () const
 
void assign (Item *srcItem)
 
bool load (const std::string &filename, const std::string &format=std::string())
 
bool load (const std::string &filename, Item *parent, const std::string &format=std::string())
 
bool save (const std::string &filename, const std::string &format=std::string())
 
bool overwrite (bool forceOverwrite=false, const std::string &format=std::string())
 
const std::string & filePath () const
 
const std::string & fileFormat () const
 
std::time_t fileModificationTime () const
 
bool isConsistentWithFile () const
 
void clearFileInformation ()
 
void suggestFileUpdate ()
 
void putProperties (PutPropertyFunction &putProperty)
 
SignalProxy< void(const std::string &oldName)> sigNameChanged ()
 
SignalProxy< void()> sigUpdated ()
 
SignalProxy< void()> sigPositionChanged ()
 
SignalProxy< void()> sigDetachedFromRoot ()
 
SignalProxy< void()> sigDisconnectedFromRoot ()
 
SignalProxy< void()> sigSubTreeChanged ()
 
ReferencedcustomData (int id)
 
const ReferencedcustomData (int id) const
 
void setCustomData (int id, ReferencedPtr data)
 
void clearCustomData (int id)
 
- Public Member Functions inherited from cnoid::Referenced
virtual ~Referenced ()
 
void addRef ()
 
void releaseRef ()
 
- Public Member Functions inherited from cnoid::SceneProvider
virtual ~SceneProvider ()
 
virtual SgNodegetScene (SgCloneMap &cloneMap)
 

Static Public Member Functions

static void initializeClass (ExtensionManager *ext)
 
- Static Public Member Functions inherited from cnoid::Item
static Itemfind (const std::string &path)
 
static SignalProxy< void(const char *type_info_name)> sigClassUnregistered ()
 

Protected Member Functions

virtual ItemdoDuplicate () const
 
virtual void doPutProperties (PutPropertyFunction &putProperty)
 
- Protected Member Functions inherited from cnoid::Item
 Item ()
 
 Item (const Item &item)
 
virtual void onConnectedToRoot ()
 
virtual void onDisconnectedFromRoot ()
 
virtual void onPositionChanged ()
 
virtual bool onChildItemAboutToBeAdded (Item *childItem, bool isManualOperation)
 
virtual void doAssign (Item *srcItem)
 
void setAttribute (Attribute attribute)
 
void unsetAttribute (Attribute attribute)
 
- Protected Member Functions inherited from cnoid::Referenced
 Referenced ()
 
 Referenced (const Referenced &org)
 
int refCount () const
 

Member Enumeration Documentation

◆ RenderingMode

Enumerator
POINT 
VOXEL 
N_RENDERING_MODES 

Constructor & Destructor Documentation

◆ PointSetItem() [1/2]

PointSetItem::PointSetItem ( )

◆ PointSetItem() [2/2]

PointSetItem::PointSetItem ( const PointSetItem org)

◆ ~PointSetItem()

PointSetItem::~PointSetItem ( )
virtual

Member Function Documentation

◆ addAttentionPoint()

void PointSetItem::addAttentionPoint ( const Vector3 p)

◆ attentionPoint() [1/2]

Vector3 PointSetItem::attentionPoint ( int  index) const

◆ attentionPoint() [2/2]

boost::optional< Vector3 > PointSetItem::attentionPoint ( ) const

◆ clearAttentionPoint()

void PointSetItem::clearAttentionPoint ( )

◆ clearAttentionPoints()

void PointSetItem::clearAttentionPoints ( )

◆ doDuplicate()

Item * PointSetItem::doDuplicate ( ) const
protectedvirtual

Override this function to allow duplication of an instance.

Reimplemented from cnoid::Item.

◆ doPutProperties()

void PointSetItem::doPutProperties ( PutPropertyFunction putProperty)
protectedvirtual

Override this function to put properties of the item.

Note
Please call doPutProperties() of the parent class in this function. For example, when your class directly inherits the Item class, call Item::doPutProperties(putProperty).

Reimplemented from cnoid::Item.

◆ getScene()

SgNode * PointSetItem::getScene ( )
virtual

If the scene has some state that affect the rendering, the scene node should be cloned for each call of this function. Otherwise, the same instance can be returned.

Implements cnoid::SceneProvider.

◆ getTransformedPointSet()

SgPointSet * PointSetItem::getTransformedPointSet ( ) const

◆ initializeClass()

void PointSetItem::initializeClass ( ExtensionManager ext)
static

◆ isEditable()

bool PointSetItem::isEditable ( ) const

◆ notifyAttentionPointChange()

void PointSetItem::notifyAttentionPointChange ( )

◆ notifyOffsetTransformChange()

void PointSetItem::notifyOffsetTransformChange ( )

◆ notifyUpdate()

void PointSetItem::notifyUpdate ( )
virtual

Reimplemented from cnoid::Item.

◆ numAttentionPoints()

int PointSetItem::numAttentionPoints ( ) const

◆ offsetTransform()

const Affine3 & PointSetItem::offsetTransform ( ) const

◆ pointSet() [1/2]

const SgPointSet * PointSetItem::pointSet ( ) const

◆ pointSet() [2/2]

SgPointSet * PointSetItem::pointSet ( )

◆ pointSize()

double PointSetItem::pointSize ( ) const

◆ removePoints()

void PointSetItem::removePoints ( const PolyhedralRegion region)

◆ renderingMode()

int PointSetItem::renderingMode ( ) const

◆ restore()

bool PointSetItem::restore ( const Archive archive)
virtual

Reimplemented from cnoid::Item.

◆ setAttentionPoint()

void PointSetItem::setAttentionPoint ( const Vector3 p)

◆ setEditable()

void PointSetItem::setEditable ( bool  on)

◆ setName()

void PointSetItem::setName ( const std::string &  name)
virtual

Reimplemented from cnoid::Item.

◆ setOffsetTransform()

void PointSetItem::setOffsetTransform ( const Affine3 T)

◆ setPointSize()

void PointSetItem::setPointSize ( double  size)

◆ setRenderingMode()

void PointSetItem::setRenderingMode ( int  mode)

◆ setVoxelSize()

void PointSetItem::setVoxelSize ( double  size)

◆ sigAttentionPointChanged()

SignalProxy< void()> PointSetItem::sigAttentionPointChanged ( )

◆ sigAttentionPointsChanged()

SignalProxy< void()> PointSetItem::sigAttentionPointsChanged ( )

◆ sigOffsetTransformChanged()

SignalProxy< void(const Affine3 &T)> PointSetItem::sigOffsetTransformChanged ( )

◆ sigPointsInRegionRemoved()

SignalProxy< void(const PolyhedralRegion &region)> PointSetItem::sigPointsInRegionRemoved ( )

◆ store()

bool PointSetItem::store ( Archive archive)
virtual

Reimplemented from cnoid::Item.

◆ voxelSize()

double PointSetItem::voxelSize ( ) const

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