#include <OsgUtils.h>
◆ LineNode()
| inet::osg::LineNode::LineNode |
( |
const Coord & |
start, |
|
|
const Coord & |
end, |
|
|
cFigure::Arrowhead |
startArrowhead, |
|
|
cFigure::Arrowhead |
endArrowhead, |
|
|
double |
lineWidth |
|
) |
| |
336 auto geode =
new osg::Geode();
337 geode->addDrawable(line);
◆ getEndArrowheadAutoTransform()
| AutoTransform* inet::osg::LineNode::getEndArrowheadAutoTransform |
( |
| ) |
|
|
inlineprotected |
81 {
return static_cast<AutoTransform *
>(getChild(
startArrowhead ? 2 : 1)); }
◆ getEndArrowheadGeode()
| Geode* inet::osg::LineNode::getEndArrowheadGeode |
( |
| ) |
|
|
inlineprotected |
◆ getEndArrowheadGeometry()
| Geometry* inet::osg::LineNode::getEndArrowheadGeometry |
( |
| ) |
|
|
inlineprotected |
◆ getLineGeode()
| Geode* inet::osg::LineNode::getLineGeode |
( |
| ) |
|
|
inlineprotected |
72 {
return static_cast<Geode *
>(getChild(0)); }
◆ getLineGeometry()
| Geometry* inet::osg::LineNode::getLineGeometry |
( |
| ) |
|
|
inlineprotected |
◆ getStartArrowheadAutoTransform()
| AutoTransform* inet::osg::LineNode::getStartArrowheadAutoTransform |
( |
| ) |
|
|
inlineprotected |
80 {
return static_cast<AutoTransform *
>(getChild(1)); }
◆ getStartArrowheadGeode()
| Geode* inet::osg::LineNode::getStartArrowheadGeode |
( |
| ) |
|
|
inlineprotected |
◆ getStartArrowheadGeometry()
| Geometry* inet::osg::LineNode::getStartArrowheadGeometry |
( |
| ) |
|
|
inlineprotected |
◆ setEnd()
| void inet::osg::LineNode::setEnd |
( |
const Coord & |
end | ) |
|
363 auto vertices =
static_cast<osg::Vec3Array *
>(line->getVertexArray());
366 line->dirtyDisplayList();
◆ setStart()
| void inet::osg::LineNode::setStart |
( |
const Coord & |
start | ) |
|
348 auto vertices =
static_cast<osg::Vec3Array *
>(line->getVertexArray());
351 line->dirtyDisplayList();
◆ endArrowhead
| cFigure::Arrowhead inet::osg::LineNode::endArrowhead |
|
protected |
◆ lineWidth
| double inet::osg::LineNode::lineWidth |
|
protected |
◆ startArrowhead
| cFigure::Arrowhead inet::osg::LineNode::startArrowhead |
|
protected |
The documentation for this class was generated from the following files: