52#define BSPLINECURVEOBJECT_C
75 splineCurveNode_(NULL)
112 std::cerr <<
"Destructor error : Spline curve already deleted" << std::endl;
131 std::cerr <<
"Cleanup error : Spline already deleted" << std::endl;
174 std::cerr <<
"Error when creating BSplineCurve Object! materialNode is NULL!" << std::endl;
191 std::string nodename = std::string(
"BSplineCurveNode for BSpline curves " + _name.toUtf8() );
265 output +=
"========================================================================\n";
269 output +=
"Object Contains BSpline Curve : ";
271 output +=
"Error: Object Contains NO BSpline Curve!";
272 output +=
"========================================================================\n";
276 output += QString::number(
splineCurve()->n_control_points() ) +
" control points, ";
277 output += QString::number(
splineCurve()->n_knots() ) +=
" knots.\n";
279 output +=
"========================================================================\n";
ACG::BSplineCurveT< ACG::Vec3d > BSplineCurve
Simple Name for BSpline curves.
#define DATA_BSPLINE_CURVE
Knotvector * get_knotvector_ref()
get a reference to the knotvector
void set_color(const Vec4f &_c)
set color (base, ambient, diffuse, specular) based on _c
virtual void init(BSplineCurve *_curve=0)
Initialise current object, including all related nodes.
ACG::SceneGraph::BSplineCurveNodeT< BSplineCurve > * splineCurveNode()
Get the scenegraph Node.
virtual void update(UpdateType _type=UPDATE_ALL)
Update the whole Object (Selection,Topology,...)
bool picked(uint _node_idx)
detect if the node has been picked
void enablePicking(bool _enable)
Enable or disable picking for this Object.
QString getObjectinfo()
Get all Info for the Object as a string.
BSplineCurve * splineCurve_
return a pointer to the spline curve
virtual void cleanup()
Reset current object, including all related nodes.
BSplineCurve * splineCurve()
return a pointer to the spline curve
ACG::SceneGraph::BSplineCurveNodeT< BSplineCurve > * splineCurveNode_
Scenegraph Mesh Node.
void setName(QString _name)
Set the name of the Object.
bool pickingEnabled()
Check if picking is enabled for this Object.
BSplineCurveObject()
constructor
virtual ~BSplineCurveObject()
destructor
virtual void setName(QString _name) override
path to the file from which the object is loaded ( defaults to "." )
MaterialNode * materialNode()
get a pointer to the materialnode
virtual void cleanup() override
virtual QString getObjectinfo()
Get all Info for the Object as a string.
QString name() const
return the name of the object. The name defaults to NONAME if unset.
void setDataType(DataType _type)
void deleteData()
Delete all data attached to this object ( calls delete on each object )
DataType dataType() const
bool contains(const UpdateType &_type) const
Check if this update contains the given UpdateType.
const UpdateType UPDATE_SELECTION_VERTICES(UpdateTypeSet(32))
Vertex selection has changed.
const UpdateType UPDATE_ALL(UpdateTypeSet(1))
Identifier for all updates.
const UpdateType UPDATE_SELECTION_KNOTS(UpdateTypeSet(512))
Knot selection has changed.
const UpdateType UPDATE_GEOMETRY(UpdateTypeSet(4))
Geometry updated.
const UpdateType UPDATE_SELECTION(UpdateTypeSet(16))
Selection updated.