Choreonoid  1.8
Public Member Functions | Protected Member Functions | List of all members
cnoid::SgPlot Class Reference

#include <SceneDrawables.h>

Inheritance diagram for cnoid::SgPlot:
cnoid::SgNode cnoid::SgObject cnoid::ClonableReferenced cnoid::Referenced cnoid::SgLineSet cnoid::SgPointSet cnoid::SceneCollision

Public Member Functions

virtual int numChildObjects () const override
 
virtual SgObject * childObject (int index) override
 
virtual const BoundingBox & boundingBox () const override
 
virtual const BoundingBox & untransformedBoundingBox () const override
 
void updateBoundingBox ()
 
void clear ()
 
bool hasVertices () const
 
SgVertexArray * vertices ()
 
const SgVertexArray * vertices () const
 
SgVertexArray * setVertices (SgVertexArray *vertices)
 
SgVertexArray * getOrCreateVertices (int size=0)
 
SgMaterial * material ()
 
const SgMaterial * material () const
 
SgMaterial * setMaterial (SgMaterial *material)
 
SgMaterial * getOrCreateMaterial ()
 
bool hasNormals () const
 
SgNormalArray * normals ()
 
const SgNormalArray * normals () const
 
SgNormalArray * setNormals (SgNormalArray *normals)
 
SgVertexArray * getOrCreateNormals ()
 
const SgIndexArray & normalIndices () const
 
SgIndexArray & normalIndices ()
 
bool hasColors () const
 
SgColorArray * colors ()
 
const SgColorArray * colors () const
 
SgColorArray * setColors (SgColorArray *colors)
 
SgColorArray * getOrCreateColors (int size=0)
 
const SgIndexArray & colorIndices () const
 
SgIndexArray & colorIndices ()
 
- Public Member Functions inherited from cnoid::SgNode
 SgNode ()
 
 SgNode (const SgNode &org)
 
 ~SgNode ()
 
int classId () const
 
SgNode * cloneNode () const
 
SgNode * cloneNode (CloneMap &cloneMap) const
 
SgNodePath findNode (const std::string &name, Affine3 &out_T)
 
void addDecorationReference ()
 
void releaseDecorationReference ()
 
bool isDecoratedSomewhere () const
 
- Public Member Functions inherited from cnoid::SgObject
SgObject * clone () const
 
SgObject * clone (CloneMap &cloneMap) const
 
void setAttribute (int attr)
 
void setAttributes (int attrs)
 
int attributes () const
 
bool hasAttribute (int attr) const
 
bool hasAttributes (int attrs) const
 
const std::string & name () const
 
void setName (const std::string &name)
 
SignalProxy< void(const SgUpdate &update)> sigUpdated ()
 
void notifyUpdate (SgUpdate &update)
 
void notifyUpdate (int action=SgUpdate::Modified)
 
void addParent (SgObject *parent, SgUpdateRef update=nullptr)
 
void removeParent (SgObject *parent)
 
int numParents () const
 
bool hasParents () const
 
const_parentIter parentBegin () const
 
const_parentIter parentEnd () const
 
SignalProxy< void(bool on)> sigGraphConnection ()
 
bool hasValidBoundingBoxCache () const
 
void invalidateBoundingBox ()
 
void setBoundingBoxCacheReady () const
 
bool hasUri () const
 
const std::string & uri () const
 
bool hasAbsoluteUri () const
 
const std::string & absoluteUri () const
 
bool hasUriFragment () const
 
const std::string & uriFragment () const
 
void setUriByFilePathAndBaseDirectory (const std::string &filePath, const std::string &baseDirectory)
 
void setUriByFilePathAndCurrentDirectory (const std::string &filePath)
 
void setUri (const std::string &uri, const std::string &absoluteUri)
 
void setUriFragment (const std::string &fragment)
 
void clearUri ()
 
bool isNode () const
 
SgNode * toNode ()
 
bool isGroupNode () const
 
SgGroup * toGroupNode ()
 
bool isTransformNode () const
 
SgTransform * toTransformNode ()
 
- Public Member Functions inherited from cnoid::Referenced
virtual ~Referenced ()
 

Protected Member Functions

 SgPlot (int classId)
 
 SgPlot (const SgPlot &org, CloneMap *cloneMap=nullptr)
 
 ~SgPlot ()
 
- Protected Member Functions inherited from cnoid::SgNode
 SgNode (int classId)
 
virtual Referenced * doClone (CloneMap *cloneMap) const override
 
- Protected Member Functions inherited from cnoid::SgObject
 SgObject ()
 
 SgObject (const SgObject &org)
 
void notifyUpperNodesOfUpdate (SgUpdate &update)
 
void notifyUpperNodesOfUpdate (SgUpdate &update, bool doInvalidateBoundingBox)
 
- Protected Member Functions inherited from cnoid::Referenced
 Referenced ()
 
 Referenced (const Referenced &)
 
int refCount () const
 

Additional Inherited Members

- Public Types inherited from cnoid::SgObject
enum  Attribute {
  Node = 1 << 0, GroupNode = 1 << 1, TransformNode = 1 << 2, Composite = 1 << 3,
  Geometry = 1 << 4, Appearance = 1 << 5, NodeDecoration = 1 << 6, Marker = 1 << 7,
  Operable = 1 << 8, MaxAttributeBit = 9, GroupAttribute = GroupNode, NodeDecorationGroup = NodeDecoration,
  MarkerAttribute = Marker
}
 
typedef std::set< SgObject * > ParentContainer
 
typedef ParentContainer::iterator parentIter
 
typedef ParentContainer::const_iterator const_parentIter
 
- Static Public Member Functions inherited from cnoid::SgNode
static int findClassId (const std::type_info &nodeType)
 
template<class NodeType >
static int findClassId ()
 
template<class NodeType >
static int findPolymorphicId ()
 
- Static Public Member Functions inherited from cnoid::SgObject
static bool checkNonNodeCloning (const CloneMap &cloneMap)
 
static void setNonNodeCloning (CloneMap &cloneMap, bool on)
 

Constructor & Destructor Documentation

◆ SgPlot() [1/2]

SgPlot::SgPlot ( int  classId)
protected

◆ SgPlot() [2/2]

SgPlot::SgPlot ( const SgPlot &  org,
CloneMap *  cloneMap = nullptr 
)
protected

◆ ~SgPlot()

SgPlot::~SgPlot ( )
protected

Member Function Documentation

◆ boundingBox()

const BoundingBox & SgPlot::boundingBox ( ) const
overridevirtual

Reimplemented from cnoid::SgNode.

◆ childObject()

SgObject * SgPlot::childObject ( int  index)
overridevirtual

Reimplemented from cnoid::SgObject.

◆ clear()

void SgPlot::clear ( )

◆ colorIndices() [1/2]

SgIndexArray& cnoid::SgPlot::colorIndices ( )
inline

◆ colorIndices() [2/2]

const SgIndexArray& cnoid::SgPlot::colorIndices ( ) const
inline

◆ colors() [1/2]

SgColorArray* cnoid::SgPlot::colors ( )
inline

◆ colors() [2/2]

const SgColorArray* cnoid::SgPlot::colors ( ) const
inline

◆ getOrCreateColors()

SgColorArray * SgPlot::getOrCreateColors ( int  size = 0)

◆ getOrCreateMaterial()

SgMaterial * SgPlot::getOrCreateMaterial ( )

◆ getOrCreateNormals()

SgNormalArray * SgPlot::getOrCreateNormals ( )

◆ getOrCreateVertices()

SgVertexArray * SgPlot::getOrCreateVertices ( int  size = 0)

◆ hasColors()

bool cnoid::SgPlot::hasColors ( ) const
inline

◆ hasNormals()

bool cnoid::SgPlot::hasNormals ( ) const
inline

◆ hasVertices()

bool cnoid::SgPlot::hasVertices ( ) const
inline

◆ material() [1/2]

SgMaterial* cnoid::SgPlot::material ( )
inline

◆ material() [2/2]

const SgMaterial* cnoid::SgPlot::material ( ) const
inline

◆ normalIndices() [1/2]

SgIndexArray& cnoid::SgPlot::normalIndices ( )
inline

◆ normalIndices() [2/2]

const SgIndexArray& cnoid::SgPlot::normalIndices ( ) const
inline

◆ normals() [1/2]

SgNormalArray* cnoid::SgPlot::normals ( )
inline

◆ normals() [2/2]

const SgNormalArray* cnoid::SgPlot::normals ( ) const
inline

◆ numChildObjects()

int SgPlot::numChildObjects ( ) const
overridevirtual

Reimplemented from cnoid::SgObject.

◆ setColors()

SgColorArray * SgPlot::setColors ( SgColorArray *  colors)

◆ setMaterial()

SgMaterial * SgPlot::setMaterial ( SgMaterial *  material)

◆ setNormals()

SgNormalArray * SgPlot::setNormals ( SgNormalArray *  normals)

◆ setVertices()

SgVertexArray * SgPlot::setVertices ( SgVertexArray *  vertices)

◆ untransformedBoundingBox()

const BoundingBox & SgPlot::untransformedBoundingBox ( ) const
overridevirtual

Reimplemented from cnoid::SgNode.

◆ updateBoundingBox()

void SgPlot::updateBoundingBox ( )

◆ vertices() [1/2]

SgVertexArray* cnoid::SgPlot::vertices ( )
inline

◆ vertices() [2/2]

const SgVertexArray* cnoid::SgPlot::vertices ( ) const
inline

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