65   void operator = (
const Geom ©);
    67   ALLOC_DELETED_CHAIN(
Geom);
    69   virtual Geom *make_copy() 
const;
    71   INLINE PrimitiveType get_primitive_type() 
const;
    72   INLINE ShadeModel get_shade_model() 
const;
    73   INLINE 
int get_geom_rendering() 
const;
    74   MAKE_PROPERTY(primitive_type, get_primitive_type);
    75   MAKE_PROPERTY(shade_model, get_shade_model);
    76   MAKE_PROPERTY(geom_rendering, get_geom_rendering);
    78   UsageHint get_usage_hint() 
const;
    79   void set_usage_hint(UsageHint usage_hint);
    82   INLINE CPT(
GeomVertexData) get_vertex_data(
Thread *current_thread = Thread::get_current_thread()) 
const;
    86   int make_nonindexed(
bool composite_only);
    90   INLINE 
bool is_empty() 
const;
    92   INLINE 
size_t get_num_primitives() 
const;
    94   MAKE_SEQ(get_primitives, get_num_primitives, get_primitive);
    97   void insert_primitive(
size_t i, 
const GeomPrimitive *primitive);
    99   void remove_primitive(
size_t i);
   100   void clear_primitives();
   101   MAKE_SEQ_PROPERTY(primitives, get_num_primitives, get_primitive, set_primitive, remove_primitive, insert_primitive);
   103   INLINE PT(
Geom) decompose() 
const;
   104   INLINE PT(
Geom) doubleside() 
const;
   105   INLINE PT(
Geom) reverse() 
const;
   106   INLINE PT(
Geom) rotate() 
const;
   107   INLINE PT(
Geom) unify(
int max_indices, 
bool preserve_order) 
const;
   108   INLINE PT(
Geom) make_points() 
const;
   109   INLINE PT(
Geom) make_lines() 
const;
   110   INLINE PT(
Geom) make_patches() 
const;
   111   INLINE PT(
Geom) make_adjacency() 
const;
   113   void decompose_in_place();
   114   void doubleside_in_place();
   115   void reverse_in_place();
   116   void rotate_in_place();
   117   void unify_in_place(
int max_indices, 
bool preserve_order);
   118   void make_points_in_place();
   119   void make_lines_in_place();
   120   void make_patches_in_place();
   121   void make_adjacency_in_place();
   123   virtual bool copy_primitives_from(
const Geom *other);
   125   int get_num_bytes() 
const;
   126   INLINE 
UpdateSeq get_modified(
Thread *current_thread = Thread::get_current_thread()) 
const;
   127   MAKE_PROPERTY(num_bytes, get_num_bytes);
   128   MAKE_PROPERTY(modified, get_modified);
   130   bool request_resident() 
const;
   132   void transform_vertices(
const LMatrix4 &mat);
   133   bool check_valid() 
const;
   137   int get_nested_vertices(
Thread *current_thread = Thread::get_current_thread()) 
const;
   138   INLINE 
void mark_bounds_stale() 
const;
   139   INLINE 
void set_bounds_type(BoundingVolume::BoundsType bounds_type);
   140   INLINE BoundingVolume::BoundsType get_bounds_type() 
const;
   142   INLINE 
void clear_bounds();
   143   MAKE_PROPERTY(bounds_type, get_bounds_type, set_bounds_type);
   145   virtual void output(std::ostream &out) 
const;
   146   virtual void write(std::ostream &out, 
int indent_level = 0) 
const;
   149   void clear_cache_stage(
Thread *current_thread);
   162             bool force, 
Thread *current_thread) 
const;
   164   INLINE 
void calc_tight_bounds(LPoint3 &min_point, LPoint3 &max_point,
   167                                 bool got_mat, 
const LMatrix4 &mat,
   168                                 Thread *current_thread) 
const;
   169   INLINE 
void calc_tight_bounds(LPoint3 &min_point, LPoint3 &max_point,
   170                                 bool &found_any, 
Thread *current_thread) 
const;
   171   INLINE 
void calc_tight_bounds(LPoint3 &min_point, LPoint3 &max_point,
   174                                 bool got_mat, 
const LMatrix4 &mat,
   176                                 Thread *current_thread) 
const;
   183   INLINE 
void mark_internal_bounds_stale(CData *cdata);
   184   void compute_internal_bounds(CData *cdata, 
Thread *current_thread) 
const;
   186   void do_calc_tight_bounds(LPoint3 &min_point, LPoint3 &max_point,
   187                             PN_stdfloat &sq_center_dist, 
bool &found_any,
   189                             bool got_mat, 
const LMatrix4 &mat,
   191                             const CData *cdata, 
Thread *current_thread) 
const;
   193   void do_calc_sphere_radius(
const LPoint3 ¢er,
   194                              PN_stdfloat &sq_radius, 
bool &found_any,
   196                              const CData *cdata, 
Thread *current_thread) 
const;
   199   bool check_will_be_valid(
const GeomVertexData *vertex_data) 
const;
   201   void reset_geom_rendering(CData *cdata);
   220   class EXPCL_PANDA_GOBJ CDataCache : 
public CycleData {
   223     INLINE CDataCache(
const CDataCache ©);
   224     virtual ~CDataCache();
   225     ALLOC_DELETED_CHAIN(CDataCache);
   228       return Geom::get_class_type();
   234     const Geom *_geom_result;  
   241     static void init_type() {
   263     INLINE 
bool operator < (
const CacheKey &other) 
const;
   279     virtual void evict_callback();
   280     virtual void output(std::ostream &out) 
const;
   291     static void init_type() {
   292       GeomCacheEntry::init_type();
   294                     GeomCacheEntry::get_class_type());
   304   class EXPCL_PANDA_GOBJ CData : 
public CycleData {
   309     ALLOC_DELETED_CHAIN(CData);
   315       return Geom::get_class_type();
   319     Primitives _primitives;
   320     PrimitiveType _primitive_type;
   321     ShadeModel _shade_model;
   326     int _nested_vertices;
   327     bool _internal_bounds_stale;
   328     BoundingVolume::BoundsType _bounds_type;
   335     static void init_type() {
   362   static void register_with_read_factory();
   365   virtual void finalize(
BamReader *manager);
   375   static void init_type() {
   376     CopyOnWriteObject::init_type();
   378                   CopyOnWriteObject::get_class_type());
   379     CDataCache::init_type();
   380     CacheEntry::init_type();
   384     return get_class_type();
   386   virtual TypeHandle force_init_type() {init_type(); 
return get_class_type();}
   391   friend class CacheEntry;
   416   INLINE 
void set_object(
const Geom *
object);
   417   INLINE 
const Geom *get_object() 
const;
   418   INLINE 
Thread *get_current_thread() 
const;
   420   INLINE PrimitiveType get_primitive_type() 
const;
   421   INLINE ShadeModel get_shade_model() 
const;
   422   INLINE 
int get_geom_rendering() 
const;
   424   INLINE 
int get_num_primitives() 
const;
   441   const Geom::CData *_cdata;
   447   static void init_type() {
   455 INLINE std::ostream &operator << (std::ostream &out, 
const Geom &obj);
 PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is a special class object that holds all the information returned by a particular GSG to indicat...
This is our own Panda specialization on the default STL map.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Objects of this class are used to convert vertex data from a Geom into a format suitable for passing ...
This class is similar to CycleDataWriter, except it allows writing to a particular stage of the pipel...
A single page of data maintained by a PipelineCycler.
Base class for objects that can be written to and read from Bam files.
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 is an abstract base class for a family of classes that represent the fundamental geometry primit...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual TypeHandle get_parent_type() const
Returns the type of the container that owns the CycleData.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
This is our own Panda specialization on the default STL list.
Encapsulates the data from a Geom, pre-fetched for one stage of the pipeline.
A table of objects that are saved within the graphics context for reference by handle later.
This template class calls PipelineCycler::read_unlocked(), and then provides a transparent read-only ...
An STL function object class, this is intended to be used on any ordered collection of pointers to cl...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is our own Panda specialization on the default STL vector.
This is an abstract class for any volume in any sense which can be said to define the locality of ref...
A lightweight class that represents a single element that may be timed and/or counted via stats.
virtual void write_datagram(BamWriter *, Datagram &) const
Writes the contents of this object to the datagram for shipping out to a Bam file.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This defines the actual numeric vertex data stored in a Geom, in the structure defined by a particula...
This template class calls PipelineCycler::read() in the constructor and PipelineCycler::release_read(...
A container for geometry primitives.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
An instance of this class is passed to the Factory when requesting it to do its business and construc...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual int complete_pointers(TypedWritable **p_list, BamReader *manager)
Receives an array of pointers, one for each time manager->read_pointer() was called in fillin().
This template class calls PipelineCycler::write() in the constructor and PipelineCycler::release_writ...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Encodes a string name in a hash table, mapping it to a pointer.
virtual void fillin(DatagramIterator &scan, BamReader *manager)
This internal function is intended to be called by each class's make_from_bam() method to read in all...
This class is similar to CycleDataReader, except it allows reading from a particular stage of the pip...
This base class provides basic reference counting, but also can be used with a CopyOnWritePointer to ...
This is a base class for the GraphicsStateGuardian class, which is itself a base class for the variou...
A thread; that is, a lightweight process.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Encapsulates the data from a GeomVertexData, pre-fetched for one stage of the pipeline.
This object contains a single cache entry in the GeomCacheManager.
A class to retrieve the individual data elements previously stored in a Datagram.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.
This is a sequence number that increments monotonically.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is a standard, non-reentrant mutex, similar to the Mutex class.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.