32class EXPCL_PANDA_PARAMETRICS SheetNode :
public PandaNode {
34 explicit SheetNode(
const std::string &name);
37 SheetNode(
const SheetNode ©);
39 virtual void output(std::ostream &out)
const;
40 virtual void write(std::ostream &out,
int indent_level = 0)
const;
63 virtual void compute_internal_bounds(CPT(
BoundingVolume) &internal_bounds,
64 int &internal_vertices,
66 Thread *current_thread)
const;
71 Thread *current_thread)
const;
72 void render_sheet(
CullTraverser *trav, CullTraverserData &data,
77 class EXPCL_PANDA_PARAMETRICS CData :
public CycleData {
80 INLINE CData(
const CData ©);
85 return SheetNode::get_class_type();
89 bool _use_vertex_color;
105 static TypedWritable *make_from_bam(
const FactoryParams ¶ms);
112 static void init_type() {
113 PandaNode::init_type();
115 PandaNode::get_class_type());
118 return get_class_type();
120 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
This is an abstract class for any volume in any sense which can be said to define the locality of ref...
This object performs a depth-first traversal of the scene graph, with optional view-frustum culling,...
This template class calls PipelineCycler::read_unlocked(), and then provides a transparent read-only ...
This template class calls PipelineCycler::write() in the constructor and PipelineCycler::release_writ...
A single page of data maintained by a PipelineCycler.
A class to retrieve the individual data elements previously stored in a Datagram.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
An instance of this class is passed to the Factory when requesting it to do its business and construc...
This class is an abstraction for evaluating NURBS surfaces.
The result of a NurbsSurfaceEvaluator.
A lightweight class that represents a single element that may be timed and/or counted via stats.
virtual bool cull_callback(CullTraverser *trav, CullTraverserData &data)
This function will be called during the cull traversal to perform any additional operations that shou...
virtual bool safe_to_transform() const
Returns true if it is generally safe to transform this particular kind of PandaNode by calling the xf...
virtual bool is_renderable() const
Returns true if there is some value to visiting this particular node during the cull traversal for an...
virtual PandaNode * make_copy() const
Returns a newly-allocated PandaNode that is a shallow copy of this one.
virtual PandaNode * make_copy() const
Returns a newly-allocated Node that is a shallow copy of this one.
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.
static void register_with_read_factory()
Tells the BamReader how to create objects of type 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.
virtual void write_datagram(BamWriter *manager, Datagram &dg)
Writes the contents of this object to the datagram for shipping out to a Bam file.
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.
void reset_bound(const NodePath &rel_to)
Recomputes the bounding volume.
A thread; that is, a lightweight process.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This class maintains different copies of a page of data between stages of the graphics pipeline (or a...