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";
void enablePicking(bool _enable)
Enable or disable picking for this Object.
ACG::SceneGraph::BSplineCurveNodeT< BSplineCurve > * splineCurveNode_
Scenegraph Mesh Node.
void setDataType(DataType _type)
BSplineCurve * splineCurve_
return a pointer to the spline curve
BSplineCurveObject()
constructor
void setName(QString _name)
Set the name of the Object.
QString getObjectinfo()
Get all Info for the Object as a string.
MaterialNode * materialNode()
get a pointer to the materialnode
virtual void init(BSplineCurve *_curve=0)
Initialise current object, including all related nodes.
ACG::BSplineCurveT< ACG::Vec3d > BSplineCurve
Simple Name for BSpline curves.
bool contains(const UpdateType &_type) const
Check if this update contains the given UpdateType.
virtual void setName(QString _name)
path to the file from which the object is loaded ( defaults to "." )
void deleteData()
Delete all data attached to this object ( calls delete on each object )
const UpdateType UPDATE_GEOMETRY(UpdateTypeSet(1)<< 2)
Geometry updated.
ACG::SceneGraph::BSplineCurveNodeT< BSplineCurve > * splineCurveNode()
Get the scenegraph Node.
const UpdateType UPDATE_SELECTION_VERTICES(UpdateTypeSet(1)<< 5)
Vertex selection has changed.
bool picked(uint _node_idx)
detect if the node has been picked
QString name() const
return the name of the object. The name defaults to NONAME if unset.
Knotvector * get_knotvector_ref()
get a reference to the knotvector
const UpdateType UPDATE_SELECTION(UpdateTypeSet(1)<< 4)
Selection updated.
#define DATA_BSPLINE_CURVE
virtual ~BSplineCurveObject()
destructor
bool pickingEnabled()
Check if picking is enabled for this Object.
BSplineCurve * splineCurve()
return a pointer to the spline curve
virtual 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
const UpdateType UPDATE_ALL(UpdateTypeSet(1))
Identifier for all updates.
virtual void update(UpdateType _type=UPDATE_ALL)
Update the whole Object (Selection,Topology,...)
DataType dataType() const
virtual void cleanup()
Reset current object, including all related nodes.
const UpdateType UPDATE_SELECTION_KNOTS(UpdateTypeSet(1)<< 9)
Knot selection has changed.