17INLINE SheetNode::CData::
19 _surface =
new NurbsSurfaceEvaluator;
20 _use_vertex_color =
false;
28INLINE SheetNode::CData::
29CData(
const SheetNode::CData ©) :
30 _surface(copy._surface),
31 _use_vertex_color(copy._use_vertex_color),
32 _num_u_subdiv(copy._num_u_subdiv),
33 _num_v_subdiv(copy._num_v_subdiv)
42 CDWriter cdata(_cycler);
43 cdata->_surface = surface;
51 CDReader cdata(_cycler);
52 return cdata->_surface;
63 CDWriter cdata(_cycler);
64 cdata->_use_vertex_color = flag;
72 CDReader cdata(_cycler);
73 return cdata->_use_vertex_color;
83 nassertv(num_u_subdiv >= 0);
84 CDWriter cdata(_cycler);
85 cdata->_num_u_subdiv = num_u_subdiv;
94 CDReader cdata(_cycler);
95 return cdata->_num_u_subdiv;
105 nassertv(num_v_subdiv >= 0);
106 CDWriter cdata(_cycler);
107 cdata->_num_v_subdiv = num_v_subdiv;
116 CDReader cdata(_cycler);
117 return cdata->_num_v_subdiv;
This class is an abstraction for evaluating NURBS surfaces.
void set_num_u_subdiv(int num_u_subdiv)
Specifies the number of subdivisions per cubic segment (that is, per unique knot value) to draw in a ...
NurbsSurfaceEvaluator * get_surface() const
Returns the surface represented by the SheetNode.
bool get_use_vertex_color() const
Returns the "use vertex color" flag.
void set_surface(NurbsSurfaceEvaluator *surface)
Sets the particular surface represented by the SheetNode.
void set_num_v_subdiv(int num_v_subdiv)
Specifies the number of subdivisions per cubic segment (that is, per unique knot value) to draw in a ...
int get_num_u_subdiv() const
Returns the number of subdivisions per cubic segment to draw in the U direction.
int get_num_v_subdiv() const
Returns the number of subdivisions per cubic segment to draw in the V direction.
void set_use_vertex_color(bool flag)
Sets the "use vertex color" flag.