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

#include <SceneDrawables.h>

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

Public Types

typedef Eigen::Map< Array2i > LineRef
 
typedef Eigen::Map< const Array2i > ConstLineRef
 
- Public Types inherited from cnoid::SgObject
typedef std::set< SgObject * > ParentContainer
 
typedef ParentContainer::iterator parentIter
 
typedef ParentContainer::const_iterator const_parentIter
 

Public Member Functions

 SgLineSet ()
 
virtual SgObject * clone (SgCloneMap &cloneMap) const
 
virtual void accept (SceneVisitor &visitor)
 
const SgIndexArray & lineVertices () const
 
SgIndexArray & lineVertices ()
 
int numLines () const
 
void setNumLines (int n)
 
void reserveNumLines (int n)
 
LineRef line (int index)
 
ConstLineRef line (int index) const
 
void setLine (int index, int v0, int v1)
 
LineRef addLine ()
 
void addLine (int v0, int v1)
 
void setLineWidth (float width)
 
float lineWidth () const
 
- Public Member Functions inherited from cnoid::SgPlot
 SgPlot ()
 
virtual int numChildObjects () const
 
virtual SgObject * childObject (int index)
 
virtual const BoundingBox & boundingBox () const
 
void updateBoundingBox ()
 
bool hasVertices () const
 
SgVertexArray * vertices ()
 
const SgVertexArray * vertices () const
 
SgVertexArray * setVertices (SgVertexArray *vertices)
 
SgVertexArray * getOrCreateVertices ()
 
SgMaterial * material ()
 
const SgMaterial * material () const
 
SgMaterial * setMaterial (SgMaterial *material)
 
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 ()
 
const SgIndexArray & colorIndices () const
 
SgIndexArray & colorIndices ()
 
- Public Member Functions inherited from cnoid::SgNode
 SgNode ()
 
 SgNode (const SgNode &org)
 
 ~SgNode ()
 
SgNode * cloneNode (SgCloneMap &cloneMap) const
 
virtual bool isGroup () const
 
- Public Member Functions inherited from cnoid::SgObject
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, bool doNotify=false)
 
void removeParent (SgObject *parent)
 
int numParents () const
 
bool hasParents () const
 
const_parentIter parentBegin () const
 
const_parentIter parentEnd () const
 
SignalProxy< void(bool on)> sigGraphConnection ()
 
- Public Member Functions inherited from cnoid::Referenced
virtual ~Referenced ()
 
void addRef ()
 
void releaseRef ()
 

Protected Member Functions

 SgLineSet (const SgLineSet &org, SgCloneMap &cloneMap)
 
- Protected Member Functions inherited from cnoid::SgPlot
 SgPlot (const SgPlot &org, SgCloneMap &cloneMap)
 
- Protected Member Functions inherited from cnoid::SgObject
 SgObject ()
 
 SgObject (const SgObject &org)
 
virtual void onUpdated (SgUpdate &update)
 
- Protected Member Functions inherited from cnoid::Referenced
 Referenced ()
 
 Referenced (const Referenced &org)
 
int refCount () const
 

Member Typedef Documentation

§ ConstLineRef

typedef Eigen::Map<const Array2i> cnoid::SgLineSet::ConstLineRef

§ LineRef

typedef Eigen::Map<Array2i> cnoid::SgLineSet::LineRef

Constructor & Destructor Documentation

§ SgLineSet() [1/2]

SgLineSet::SgLineSet ( )

§ SgLineSet() [2/2]

SgLineSet::SgLineSet ( const SgLineSet &  org,
SgCloneMap &  cloneMap 
)
protected

Member Function Documentation

§ accept()

void SgLineSet::accept ( SceneVisitor &  visitor)
virtual

Reimplemented from cnoid::SgNode.

Reimplemented in cnoid::SceneCollision.

§ addLine() [1/2]

LineRef cnoid::SgLineSet::addLine ( )
inline

§ addLine() [2/2]

void cnoid::SgLineSet::addLine ( int  v0,
int  v1 
)
inline

§ clone()

SgObject * SgLineSet::clone ( SgCloneMap &  cloneMap) const
virtual

Reimplemented from cnoid::SgNode.

§ line() [1/2]

LineRef cnoid::SgLineSet::line ( int  index)
inline

§ line() [2/2]

ConstLineRef cnoid::SgLineSet::line ( int  index) const
inline

§ lineVertices() [1/2]

const SgIndexArray& cnoid::SgLineSet::lineVertices ( ) const
inline

§ lineVertices() [2/2]

SgIndexArray& cnoid::SgLineSet::lineVertices ( )
inline

§ lineWidth()

float cnoid::SgLineSet::lineWidth ( ) const
inline

The default value of this is zero and the current system value is used then.

§ numLines()

int cnoid::SgLineSet::numLines ( ) const
inline

§ reserveNumLines()

void cnoid::SgLineSet::reserveNumLines ( int  n)
inline

§ setLine()

void cnoid::SgLineSet::setLine ( int  index,
int  v0,
int  v1 
)
inline

§ setLineWidth()

void cnoid::SgLineSet::setLineWidth ( float  width)
inline

§ setNumLines()

void cnoid::SgLineSet::setNumLines ( int  n)
inline

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