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