20 #include <osg/Geometry> 21 #include <osg/MatrixTransform> 22 #include <osgDB/ObjectWrapper> 24 #include "libSGControls/ProgramStroke.h" 25 #include "ShaderedEntity2D.h" 68 Stroke(
const Stroke& copy,
const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY);
72 #ifndef DOXYGEN_SHOULD_SKIP_THIS 74 void setIsCurved(
bool curved);
75 bool getIsCurved()
const;
110 virtual void appendPoint(
const float u,
const float v);
115 osg::Vec3Array*
getCurvePoints(
const osg::Vec3Array* bezierPts)
const;
128 double normalize(osg::Vec3Array* path,
const osg::Vec3f& center);
132 void denormalize(osg::Vec3Array* path,
const osg::Vec3f& center,
double scale);
double normalize(osg::Vec3Array *path, const osg::Vec3f ¢er)
Definition: Stroke.cpp:254
osg::Node * getMeshRepresentation() const
Definition: Stroke.cpp:140
Scene graph entities.
Definition: AddEntityCommand.h:17
cher::ENTITY_TYPE getEntityType() const
Definition: Stroke.cpp:213
bool isLengthy() const
Definition: Stroke.cpp:208
Geometry class that defined strokes entered by a user. The creation and usage of this class must be f...
Definition: Stroke.h:62
virtual void scale(double scaleX, double scaleY, osg::Vec3f center)
Definition: ShaderedEntity2D.cpp:172
An interface class that deals with entity::Stroke shader's state.
Definition: ProgramStroke.h:19
Stroke()
Definition: Stroke.cpp:17
virtual bool redefineToShape(osg::MatrixTransform *t=0)
Definition: Stroke.cpp:60
void denormalize(osg::Vec3Array *path, const osg::Vec3f ¢er, double scale)
Definition: Stroke.cpp:272
virtual bool redefineToShader(osg::MatrixTransform *t)
Definition: Stroke.cpp:167
Settings is a configuration variables file for Cherish: enums, consts, defaults. Contains settings su...
virtual void appendPoint(const float u, const float v)
Definition: Stroke.cpp:223
virtual bool copyFrom(const entity::ShaderedEntity2D *copy)
Definition: Stroke.cpp:45
Abstract class for all the shaderized entities, i.e., strokes, polygons and line segments.
Definition: ShaderedEntity2D.h:18
float getLength() const
Definition: Stroke.cpp:196
osg::Vec3Array * getCurvePoints(const osg::Vec3Array *bezierPts) const
Definition: Stroke.cpp:228