Choreonoid  1.8
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::ClonableReferenced cnoid::Referenced cnoid::SceneCollision

Public Types

typedef Eigen::Map< Array2i > LineRef
 
typedef Eigen::Map< const Array2i > ConstLineRef
 
- 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
 

Public Member Functions

 SgLineSet ()
 
 SgLineSet (const SgLineSet &org, CloneMap *cloneMap=nullptr)
 
const SgIndexArraylineVertexIndices () const
 
SgIndexArraylineVertexIndices ()
 
const SgIndexArraylineVertices () const
 
SgIndexArraylineVertices ()
 
int numLines () const
 
void setNumLines (int n)
 
void reserveNumLines (int n)
 
void clearLines ()
 
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 resizeColorIndicesForNumLines (int n)
 
void setLineColor (int lineIndex, int colorIndex)
 
void setLineWidth (float width)
 
float lineWidth () const
 
- Public Member Functions inherited from cnoid::SgPlot
virtual int numChildObjects () const override
 
virtual SgObjectchildObject (int index) override
 
virtual const BoundingBoxboundingBox () const override
 
virtual const BoundingBoxuntransformedBoundingBox () const override
 
void updateBoundingBox ()
 
void clear ()
 
bool hasVertices () const
 
SgVertexArrayvertices ()
 
const SgVertexArrayvertices () const
 
SgVertexArraysetVertices (SgVertexArray *vertices)
 
SgVertexArraygetOrCreateVertices (int size=0)
 
SgMaterialmaterial ()
 
const SgMaterialmaterial () const
 
SgMaterialsetMaterial (SgMaterial *material)
 
SgMaterialgetOrCreateMaterial ()
 
bool hasColors () const
 
SgColorArraycolors ()
 
const SgColorArraycolors () const
 
SgColorArraysetColors (SgColorArray *colors)
 
SgColorArraygetOrCreateColors (int size=0)
 
const SgIndexArraycolorIndices () const
 
SgIndexArraycolorIndices ()
 
bool hasNormals () const
 
SgNormalArraynormals ()
 
const SgNormalArraynormals () const
 
SgNormalArraysetNormals (SgNormalArray *normals)
 
SgVertexArraygetOrCreateNormals ()
 
const SgIndexArraynormalIndices () const
 
SgIndexArraynormalIndices ()
 
- Public Member Functions inherited from cnoid::SgNode
 SgNode ()
 
 SgNode (const SgNode &org)
 
 ~SgNode ()
 
int classId () const
 
SgNodecloneNode () const
 
SgNodecloneNode (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
SgObjectclone () const
 
SgObjectclone (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
 
SgNodetoNode ()
 
bool isGroupNode () const
 
SgGrouptoGroupNode ()
 
bool isTransformNode () const
 
SgTransformtoTransformNode ()
 
- Public Member Functions inherited from cnoid::Referenced
virtual ~Referenced ()
 

Protected Member Functions

 SgLineSet (int classId)
 
virtual ReferenceddoClone (CloneMap *cloneMap) const override
 
- Protected Member Functions inherited from cnoid::SgPlot
 SgPlot (int classId)
 
 SgPlot (const SgPlot &org, CloneMap *cloneMap=nullptr)
 
 ~SgPlot ()
 
- Protected Member Functions inherited from cnoid::SgNode
 SgNode (int classId)
 
- 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

- 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)
 

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/3]

SgLineSet::SgLineSet ( )

◆ SgLineSet() [2/3]

SgLineSet::SgLineSet ( const SgLineSet org,
CloneMap cloneMap = nullptr 
)

◆ SgLineSet() [3/3]

SgLineSet::SgLineSet ( int  classId)
protected

Member Function Documentation

◆ addLine() [1/2]

LineRef cnoid::SgLineSet::addLine ( )
inline

◆ addLine() [2/2]

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

◆ clearLines()

void cnoid::SgLineSet::clearLines ( )
inline

◆ doClone()

Referenced * SgLineSet::doClone ( CloneMap cloneMap) const
overrideprotectedvirtual

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

◆ lineVertexIndices() [1/2]

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

◆ lineVertexIndices() [2/2]

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

◆ lineVertices() [1/2]

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

◆ lineVertices() [2/2]

const SgIndexArray& cnoid::SgLineSet::lineVertices ( ) const
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

◆ resizeColorIndicesForNumLines()

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

◆ setLine()

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

◆ setLineColor()

void cnoid::SgLineSet::setLineColor ( int  lineIndex,
int  colorIndex 
)
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: