mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 19:08:55 -04:00
*** empty log message ***
This commit is contained in:
parent
d899f20cc4
commit
0824e8031c
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#include "audio_trait.h"
|
#include "audio_trait.h"
|
||||||
#include <typedReferenceCount.h>
|
#include <typedReferenceCount.h>
|
||||||
#include <typeHandle.h>
|
#include <typedObject.h>
|
||||||
#include <namable.h>
|
#include <namable.h>
|
||||||
#include <pointerTo.h>
|
#include <pointerTo.h>
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
#include <pandabase.h>
|
#include <pandabase.h>
|
||||||
|
|
||||||
#include <pointerToArray.h>
|
#include <pointerToArray.h>
|
||||||
#include <typeHandle.h>
|
#include <typedObject.h>
|
||||||
#include <luse.h>
|
#include <luse.h>
|
||||||
#include <pta_Vertexf.h>
|
#include <pta_Vertexf.h>
|
||||||
#include <pta_Normalf.h>
|
#include <pta_Normalf.h>
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#include <pandabase.h>
|
#include <pandabase.h>
|
||||||
|
|
||||||
#include <typeHandle.h>
|
#include <typedObject.h>
|
||||||
|
|
||||||
class Texture;
|
class Texture;
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
#include "localHeaderFile.h"
|
#include "localHeaderFile.h"
|
||||||
#include "anotherLocalHeaderFile.h"
|
#include "anotherLocalHeaderFile.h"
|
||||||
|
|
||||||
#include <typeHandle.h>
|
#include <typedObject.h>
|
||||||
#include <anotherPandaHeaderFile.h>
|
#include <anotherPandaHeaderFile.h>
|
||||||
|
|
||||||
#include <systemHeaderFile.h>
|
#include <systemHeaderFile.h>
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
#include "eggMorphList.h"
|
#include "eggMorphList.h"
|
||||||
|
|
||||||
#include <typeHandle.h>
|
#include <typedObject.h>
|
||||||
#include <luse.h>
|
#include <luse.h>
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
#include "eggNode.h"
|
#include "eggNode.h"
|
||||||
|
|
||||||
#include <coordinateSystem.h>
|
#include <coordinateSystem.h>
|
||||||
#include <typeHandle.h>
|
#include <typedObject.h>
|
||||||
#include <pointerTo.h>
|
#include <pointerTo.h>
|
||||||
#include <luse.h>
|
#include <luse.h>
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
#include "eggNamedObject.h"
|
#include "eggNamedObject.h"
|
||||||
|
|
||||||
#include <typeHandle.h>
|
#include <typedObject.h>
|
||||||
#include <lmatrix.h>
|
#include <lmatrix.h>
|
||||||
#include <pointerTo.h>
|
#include <pointerTo.h>
|
||||||
#include <referenceCount.h>
|
#include <referenceCount.h>
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#include <pandabase.h>
|
#include <pandabase.h>
|
||||||
|
|
||||||
#include <typeHandle.h>
|
#include <typedObject.h>
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
#include <allTransitionsWrapper.h>
|
#include <allTransitionsWrapper.h>
|
||||||
#include <allAttributesWrapper.h>
|
#include <allAttributesWrapper.h>
|
||||||
#include <nullLevelState.h>
|
#include <nullLevelState.h>
|
||||||
#include <typeHandle.h>
|
#include <typedObject.h>
|
||||||
#include <notify.h>
|
#include <notify.h>
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
#include <pandabase.h>
|
#include <pandabase.h>
|
||||||
|
|
||||||
#include <typedef.h>
|
#include <typedef.h>
|
||||||
#include <typeHandle.h>
|
#include <typedObject.h>
|
||||||
#include <typedReferenceCount.h>
|
#include <typedReferenceCount.h>
|
||||||
#include <pointerTo.h>
|
#include <pointerTo.h>
|
||||||
//#include <luse.h>
|
//#include <luse.h>
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#include <pandabase.h>
|
#include <pandabase.h>
|
||||||
|
|
||||||
#include <typeHandle.h>
|
#include <typedObject.h>
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Class : EventReceiver
|
// Class : EventReceiver
|
||||||
|
@ -32,7 +32,9 @@
|
|||||||
reversedNumericData.I reversedNumericData.cxx reversedNumericData.h \
|
reversedNumericData.I reversedNumericData.cxx reversedNumericData.h \
|
||||||
tokenBoard.I tokenBoard.h \
|
tokenBoard.I tokenBoard.h \
|
||||||
trueClock.I trueClock.cxx trueClock.h typeHandle.I typeHandle.cxx \
|
trueClock.I trueClock.cxx trueClock.h typeHandle.I typeHandle.cxx \
|
||||||
typeHandle.h typedReferenceCount.I typedReferenceCount.cxx \
|
typeHandle.h \
|
||||||
|
typedObject.I typedObject.cxx typedObject.h \
|
||||||
|
typedReferenceCount.I typedReferenceCount.cxx \
|
||||||
typedReferenceCount.h typedef.h error_utils.cxx error_utils.h
|
typedReferenceCount.h typedef.h error_utils.cxx error_utils.h
|
||||||
|
|
||||||
#define IF_CRYPTO_SOURCES \
|
#define IF_CRYPTO_SOURCES \
|
||||||
@ -56,6 +58,7 @@
|
|||||||
pointerTo.I pointerTo.h referenceCount.I referenceCount.h \
|
pointerTo.I pointerTo.h referenceCount.I referenceCount.h \
|
||||||
reversedNumericData.I reversedNumericData.h \
|
reversedNumericData.I reversedNumericData.h \
|
||||||
tokenBoard.h trueClock.I trueClock.h typeHandle.I typeHandle.h \
|
tokenBoard.h trueClock.I trueClock.h typeHandle.I typeHandle.h \
|
||||||
|
typedObject.h typedObject.I \
|
||||||
typedReferenceCount.I typedReferenceCount.h typedef.h \
|
typedReferenceCount.I typedReferenceCount.h typedef.h \
|
||||||
namable.I namable.h tokenBoard.I patchfile.h patchfile.I \
|
namable.I namable.h tokenBoard.I patchfile.h patchfile.I \
|
||||||
error_utils.h
|
error_utils.h
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
#include "config_express.h"
|
#include "config_express.h"
|
||||||
#include "clockObject.h"
|
#include "clockObject.h"
|
||||||
#include "typeHandle.h"
|
#include "typedObject.h"
|
||||||
#include "referenceCount.h"
|
#include "referenceCount.h"
|
||||||
#include "typedReferenceCount.h"
|
#include "typedReferenceCount.h"
|
||||||
#include "datagram.h"
|
#include "datagram.h"
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
#include <pandabase.h>
|
#include <pandabase.h>
|
||||||
|
|
||||||
#include "numeric_types.h"
|
#include "numeric_types.h"
|
||||||
#include "typeHandle.h"
|
#include "typedObject.h"
|
||||||
#include "littleEndian.h"
|
#include "littleEndian.h"
|
||||||
#include "bigEndian.h"
|
#include "bigEndian.h"
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#include <pandabase.h>
|
#include <pandabase.h>
|
||||||
|
|
||||||
#include "typeHandle.h"
|
#include "typedObject.h"
|
||||||
|
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#include <pandabase.h>
|
#include <pandabase.h>
|
||||||
|
|
||||||
#include "typeHandle.h"
|
#include "typedObject.h"
|
||||||
#include "pointerTo.h"
|
#include "pointerTo.h"
|
||||||
#include "referenceCount.h"
|
#include "referenceCount.h"
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
#include <pandabase.h>
|
#include <pandabase.h>
|
||||||
|
|
||||||
#include "typeHandle.h"
|
#include "typedObject.h"
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////
|
||||||
|
@ -151,7 +151,7 @@ PUBLISHED:
|
|||||||
// e.g. instead of (MyType *)(BaseClass *)ptr, use (MyType *)ptr.p()
|
// e.g. instead of (MyType *)(BaseClass *)ptr, use (MyType *)ptr.p()
|
||||||
|
|
||||||
// If your base class is a derivative of TypedObject, you might want
|
// If your base class is a derivative of TypedObject, you might want
|
||||||
// to use the DCAST macro defined in typeHandle.h instead,
|
// to use the DCAST macro defined in typedObject.h instead,
|
||||||
// e.g. DCAST(MyType, ptr). This provides a clean downcast that
|
// e.g. DCAST(MyType, ptr). This provides a clean downcast that
|
||||||
// doesn't require .p() or any double-casting, and it can be
|
// doesn't require .p() or any double-casting, and it can be
|
||||||
// run-time checked for correctness.
|
// run-time checked for correctness.
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
#include <pandabase.h>
|
#include <pandabase.h>
|
||||||
|
|
||||||
#include "typeHandle.h"
|
#include "typedObject.h"
|
||||||
#include "memoryUsage.h"
|
#include "memoryUsage.h"
|
||||||
#include "config_express.h"
|
#include "config_express.h"
|
||||||
|
|
||||||
@ -83,7 +83,7 @@ INLINE void unref_delete(RefCountType *ptr);
|
|||||||
// that does not have get_class_type(), you will have to
|
// that does not have get_class_type(), you will have to
|
||||||
// define a template specialization on
|
// define a template specialization on
|
||||||
// _get_type_handle() and _do_init_type(), as in
|
// _get_type_handle() and _do_init_type(), as in
|
||||||
// typeHandle.h.
|
// typedObject.h.
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
template<class Base>
|
template<class Base>
|
||||||
class EXPCL_PANDAEXPRESS RefCountProxy : public ReferenceCount {
|
class EXPCL_PANDAEXPRESS RefCountProxy : public ReferenceCount {
|
||||||
|
@ -317,60 +317,6 @@ register_dynamic_type(const string &name,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
|
||||||
// Function: TypedObject::Constructor
|
|
||||||
// Access: Public
|
|
||||||
// Description:
|
|
||||||
////////////////////////////////////////////////////////////////////
|
|
||||||
INLINE TypedObject::
|
|
||||||
TypedObject() {
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
|
||||||
// Function: TypedObject::Copy Constructor
|
|
||||||
// Access: Public
|
|
||||||
// Description:
|
|
||||||
////////////////////////////////////////////////////////////////////
|
|
||||||
INLINE TypedObject::
|
|
||||||
TypedObject(const TypedObject &) {
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
|
||||||
// Function: TypedObject::Copy Assignment Operator
|
|
||||||
// Access: Public
|
|
||||||
// Description:
|
|
||||||
////////////////////////////////////////////////////////////////////
|
|
||||||
INLINE void TypedObject::
|
|
||||||
operator = (const TypedObject &) {
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
|
||||||
// Function: TypedObject::is_of_type
|
|
||||||
// Access: Public
|
|
||||||
// Description: Returns true if the current object is or derives from
|
|
||||||
// the indicated type.
|
|
||||||
////////////////////////////////////////////////////////////////////
|
|
||||||
INLINE bool TypedObject::
|
|
||||||
is_of_type(TypeHandle handle) const {
|
|
||||||
return get_type().is_derived_from(handle, (TypedObject *)this);
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
|
||||||
// Function: TypedObject::is_exact_type
|
|
||||||
// Access: Public
|
|
||||||
// Description: Returns true if the current object is the indicated
|
|
||||||
// type exactly.
|
|
||||||
////////////////////////////////////////////////////////////////////
|
|
||||||
INLINE bool TypedObject::
|
|
||||||
is_exact_type(TypeHandle handle) const {
|
|
||||||
#ifndef NDEBUG
|
|
||||||
// Call get_name() to force the type to look itself up if necessary.
|
|
||||||
get_type().get_name((TypedObject *)this);
|
|
||||||
#endif
|
|
||||||
return get_type() == handle;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Function: _dcast_get_typehandle
|
// Function: _dcast_get_typehandle
|
||||||
// Description: Returns the TypeHandle associated with the type of
|
// Description: Returns the TypeHandle associated with the type of
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#include "typeHandle.h"
|
#include "typeHandle.h"
|
||||||
|
#include "typedObject.h"
|
||||||
#include "indent.h"
|
#include "indent.h"
|
||||||
#include "config_express.h"
|
#include "config_express.h"
|
||||||
|
|
||||||
@ -16,8 +17,6 @@
|
|||||||
|
|
||||||
TypeRegistry *TypeRegistry::_global_pointer = NULL;
|
TypeRegistry *TypeRegistry::_global_pointer = NULL;
|
||||||
|
|
||||||
TypeHandle TypedObject::_type_handle;
|
|
||||||
|
|
||||||
// This is initialized to zero by static initialization.
|
// This is initialized to zero by static initialization.
|
||||||
TypeHandle TypeHandle::_none;
|
TypeHandle TypeHandle::_none;
|
||||||
|
|
||||||
@ -681,28 +680,3 @@ get_parent_towards(TypeHandle type) const {
|
|||||||
return TypeHandle::none();
|
return TypeHandle::none();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
|
||||||
// Function: TypedObject::Destructor
|
|
||||||
// Access: Public, Virtual
|
|
||||||
// Description:
|
|
||||||
////////////////////////////////////////////////////////////////////
|
|
||||||
TypedObject::
|
|
||||||
~TypedObject() {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
|
||||||
// Function: TypedObject::get_type
|
|
||||||
// Access: Public, Virtual
|
|
||||||
// Description:
|
|
||||||
////////////////////////////////////////////////////////////////////
|
|
||||||
TypeHandle TypedObject::
|
|
||||||
get_type() const {
|
|
||||||
// Normally, this function should never be called, because it is a
|
|
||||||
// pure virtual function. If it is called, you probably called
|
|
||||||
// get_type() on a recently-destructed object.
|
|
||||||
express_cat.warning()
|
|
||||||
<< "TypedObject::get_type() called!\n";
|
|
||||||
return _type_handle;
|
|
||||||
}
|
|
||||||
|
@ -270,109 +270,6 @@ register_dynamic_type(const string &name,
|
|||||||
TypeHandle parent3, TypeHandle parent4);
|
TypeHandle parent3, TypeHandle parent4);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
|
||||||
// Class : TypedObject
|
|
||||||
// Description : This is an abstract class that all classes which
|
|
||||||
// use TypeHandle, and also provide virtual functions to
|
|
||||||
// support polymorphism, should inherit from. Each
|
|
||||||
// derived class should define get_type(), which should
|
|
||||||
// return the specific type of the derived class.
|
|
||||||
// Inheriting from this automatically provides support
|
|
||||||
// for is_of_type() and is_exact_type().
|
|
||||||
////////////////////////////////////////////////////////////////////
|
|
||||||
class EXPCL_PANDAEXPRESS TypedObject {
|
|
||||||
public:
|
|
||||||
INLINE TypedObject();
|
|
||||||
INLINE TypedObject(const TypedObject ©);
|
|
||||||
INLINE void operator = (const TypedObject ©);
|
|
||||||
|
|
||||||
PUBLISHED:
|
|
||||||
// A virtual destructor is just a good idea.
|
|
||||||
virtual ~TypedObject();
|
|
||||||
|
|
||||||
// Derived classes should override this function to return
|
|
||||||
// get_class_type().
|
|
||||||
virtual TypeHandle get_type() const=0;
|
|
||||||
|
|
||||||
INLINE bool is_of_type(TypeHandle handle) const;
|
|
||||||
INLINE bool is_exact_type(TypeHandle handle) const;
|
|
||||||
|
|
||||||
public:
|
|
||||||
// Derived classes should override this function to call
|
|
||||||
// init_type(). It will only be called in error situations when the
|
|
||||||
// type was for some reason not properly initialized.
|
|
||||||
virtual TypeHandle force_init_type()=0;
|
|
||||||
|
|
||||||
public:
|
|
||||||
static TypeHandle get_class_type() {
|
|
||||||
return _type_handle;
|
|
||||||
}
|
|
||||||
static void init_type() {
|
|
||||||
register_type(_type_handle, "TypedObject");
|
|
||||||
}
|
|
||||||
|
|
||||||
private:
|
|
||||||
static TypeHandle _type_handle;
|
|
||||||
};
|
|
||||||
|
|
||||||
// The DCAST (downcast) macro is defined as a convenience for
|
|
||||||
// downcasting from some TypedObject pointer (or a PointerTo). It's
|
|
||||||
// just a normal C++-style downcast, except it first checks get_type()
|
|
||||||
// to make sure the downcasting is safe. If you compile with NDEBUG,
|
|
||||||
// this check is removed.
|
|
||||||
|
|
||||||
// DCAST will return NULL if the downcasting is unsafe. If you'd
|
|
||||||
// rather it abort out of the function (ala nassertv/nassertr), then
|
|
||||||
// see DCAST_INTO_V and DCAST_INTO_R, below.
|
|
||||||
|
|
||||||
template<class WantType>
|
|
||||||
INLINE WantType *_dcast(WantType *, TypedObject *ptr);
|
|
||||||
template<class WantType>
|
|
||||||
INLINE const WantType *_dcast(WantType *, const TypedObject *ptr);
|
|
||||||
|
|
||||||
// Note: it is important that DCAST not repeat the pointer parameter,
|
|
||||||
// since many users of DCAST may want to use the result of a function
|
|
||||||
// as the pointer parameter, and it could be terribly confusing and
|
|
||||||
// difficult to trace if the function was executed twice. This
|
|
||||||
// happened!
|
|
||||||
#define DCAST(want_type, pointer) _dcast((want_type*)0, pointer)
|
|
||||||
|
|
||||||
// DCAST_INTO_V and DCAST_INTO_R are similar in purpose to DCAST,
|
|
||||||
// except they: (a) automatically assign a variable instead of
|
|
||||||
// returning the downcasted pointer, and (b) they immediately return
|
|
||||||
// out of the function if the downcasting fails. DCAST_INTO_V is for
|
|
||||||
// use in a void function and returns nothing; DCAST_INTO_R is for use
|
|
||||||
// in a non-void function and returns the indicated value.
|
|
||||||
|
|
||||||
// Both DCAST_INTO_V and DCAST_INTO_R accept as the first parameter a
|
|
||||||
// variable of type (want_type *) or (const want_type *), instead of
|
|
||||||
// the name of the type. This variable will be filled with the new
|
|
||||||
// pointer.
|
|
||||||
|
|
||||||
|
|
||||||
// _dcast_ref is used to implement DCAST_INTO_V and DCAST_INTO_R. Its
|
|
||||||
// difference from _dcast is that it takes a reference to a pointer as
|
|
||||||
// a first parameter. The main point of this is to shut up the
|
|
||||||
// compiler about pointers used before their value is assigned.
|
|
||||||
template<class WantType>
|
|
||||||
INLINE WantType *_dcast_ref(WantType *&, TypedObject *ptr);
|
|
||||||
template<class WantType>
|
|
||||||
INLINE const WantType *_dcast_ref(WantType *&, const TypedObject *ptr);
|
|
||||||
|
|
||||||
|
|
||||||
#define DCAST_INTO_V(to_pointer, from_pointer) \
|
|
||||||
{ \
|
|
||||||
(to_pointer) = _dcast_ref(to_pointer, from_pointer); \
|
|
||||||
nassertv((void *)(to_pointer) != (void *)NULL); \
|
|
||||||
}
|
|
||||||
|
|
||||||
#define DCAST_INTO_R(to_pointer, from_pointer, return_value) \
|
|
||||||
{ \
|
|
||||||
(to_pointer) = _dcast_ref(to_pointer, from_pointer); \
|
|
||||||
nassertr((void *)(to_pointer) != (void *)NULL, return_value); \
|
|
||||||
}
|
|
||||||
|
|
||||||
// A few system-wide TypeHandles are defined for some basic types.
|
// A few system-wide TypeHandles are defined for some basic types.
|
||||||
extern TypeHandle EXPCL_PANDAEXPRESS long_type_handle;
|
extern TypeHandle EXPCL_PANDAEXPRESS long_type_handle;
|
||||||
extern TypeHandle EXPCL_PANDAEXPRESS int_type_handle;
|
extern TypeHandle EXPCL_PANDAEXPRESS int_type_handle;
|
||||||
|
71
panda/src/express/typedObject.I
Normal file
71
panda/src/express/typedObject.I
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
// Filename: typedObject.I
|
||||||
|
// Created by: drose (11May01)
|
||||||
|
//
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
// Function: TypedObject::Constructor
|
||||||
|
// Access: Public
|
||||||
|
// Description:
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
INLINE TypedObject::
|
||||||
|
TypedObject() {
|
||||||
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
// Function: TypedObject::Copy Constructor
|
||||||
|
// Access: Public
|
||||||
|
// Description:
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
INLINE TypedObject::
|
||||||
|
TypedObject(const TypedObject &) {
|
||||||
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
// Function: TypedObject::Copy Assignment Operator
|
||||||
|
// Access: Public
|
||||||
|
// Description:
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
INLINE void TypedObject::
|
||||||
|
operator = (const TypedObject &) {
|
||||||
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
// Function: TypedObject::get_type_index
|
||||||
|
// Access: Public
|
||||||
|
// Description: Returns the internal index number associated with
|
||||||
|
// this object's TypeHandle, a unique number for each
|
||||||
|
// different type. This is equivalent to
|
||||||
|
// get_type().get_index().
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
INLINE int TypedObject::
|
||||||
|
get_type_index() const {
|
||||||
|
return get_type().get_index();
|
||||||
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
// Function: TypedObject::is_of_type
|
||||||
|
// Access: Public
|
||||||
|
// Description: Returns true if the current object is or derives from
|
||||||
|
// the indicated type.
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
INLINE bool TypedObject::
|
||||||
|
is_of_type(TypeHandle handle) const {
|
||||||
|
return get_type().is_derived_from(handle, (TypedObject *)this);
|
||||||
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
// Function: TypedObject::is_exact_type
|
||||||
|
// Access: Public
|
||||||
|
// Description: Returns true if the current object is the indicated
|
||||||
|
// type exactly.
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
INLINE bool TypedObject::
|
||||||
|
is_exact_type(TypeHandle handle) const {
|
||||||
|
#ifndef NDEBUG
|
||||||
|
// Call get_name() to force the type to look itself up if necessary.
|
||||||
|
get_type().get_name((TypedObject *)this);
|
||||||
|
#endif
|
||||||
|
return get_type() == handle;
|
||||||
|
}
|
35
panda/src/express/typedObject.cxx
Normal file
35
panda/src/express/typedObject.cxx
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
// Filename: typedObject.cxx
|
||||||
|
// Created by: drose (11May01)
|
||||||
|
//
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include "typedObject.h"
|
||||||
|
#include "config_express.h"
|
||||||
|
|
||||||
|
|
||||||
|
TypeHandle TypedObject::_type_handle;
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
// Function: TypedObject::Destructor
|
||||||
|
// Access: Public, Virtual
|
||||||
|
// Description:
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
TypedObject::
|
||||||
|
~TypedObject() {
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
// Function: TypedObject::get_type
|
||||||
|
// Access: Public, Virtual
|
||||||
|
// Description:
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
TypeHandle TypedObject::
|
||||||
|
get_type() const {
|
||||||
|
// Normally, this function should never be called, because it is a
|
||||||
|
// pure virtual function. If it is called, you probably called
|
||||||
|
// get_type() on a recently-destructed object.
|
||||||
|
express_cat.warning()
|
||||||
|
<< "TypedObject::get_type() called!\n";
|
||||||
|
return _type_handle;
|
||||||
|
}
|
119
panda/src/express/typedObject.h
Normal file
119
panda/src/express/typedObject.h
Normal file
@ -0,0 +1,119 @@
|
|||||||
|
// Filename: typedObject.h
|
||||||
|
// Created by: drose (11May01)
|
||||||
|
//
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifndef TYPEDOBJECT_H
|
||||||
|
#define TYPEDOBJECT_H
|
||||||
|
|
||||||
|
#include <pandabase.h>
|
||||||
|
|
||||||
|
#include "typeHandle.h"
|
||||||
|
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
// Class : TypedObject
|
||||||
|
// Description : This is an abstract class that all classes which
|
||||||
|
// use TypeHandle, and also provide virtual functions to
|
||||||
|
// support polymorphism, should inherit from. Each
|
||||||
|
// derived class should define get_type(), which should
|
||||||
|
// return the specific type of the derived class.
|
||||||
|
// Inheriting from this automatically provides support
|
||||||
|
// for is_of_type() and is_exact_type().
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
class EXPCL_PANDAEXPRESS TypedObject {
|
||||||
|
public:
|
||||||
|
INLINE TypedObject();
|
||||||
|
INLINE TypedObject(const TypedObject ©);
|
||||||
|
INLINE void operator = (const TypedObject ©);
|
||||||
|
|
||||||
|
PUBLISHED:
|
||||||
|
// A virtual destructor is just a good idea.
|
||||||
|
virtual ~TypedObject();
|
||||||
|
|
||||||
|
// Derived classes should override this function to return
|
||||||
|
// get_class_type().
|
||||||
|
virtual TypeHandle get_type() const=0;
|
||||||
|
|
||||||
|
INLINE int get_type_index() const;
|
||||||
|
INLINE bool is_of_type(TypeHandle handle) const;
|
||||||
|
INLINE bool is_exact_type(TypeHandle handle) const;
|
||||||
|
|
||||||
|
public:
|
||||||
|
// Derived classes should override this function to call
|
||||||
|
// init_type(). It will only be called in error situations when the
|
||||||
|
// type was for some reason not properly initialized.
|
||||||
|
virtual TypeHandle force_init_type()=0;
|
||||||
|
|
||||||
|
public:
|
||||||
|
static TypeHandle get_class_type() {
|
||||||
|
return _type_handle;
|
||||||
|
}
|
||||||
|
static void init_type() {
|
||||||
|
register_type(_type_handle, "TypedObject");
|
||||||
|
}
|
||||||
|
|
||||||
|
private:
|
||||||
|
static TypeHandle _type_handle;
|
||||||
|
};
|
||||||
|
|
||||||
|
// The DCAST (downcast) macro is defined as a convenience for
|
||||||
|
// downcasting from some TypedObject pointer (or a PointerTo). It's
|
||||||
|
// just a normal C++-style downcast, except it first checks get_type()
|
||||||
|
// to make sure the downcasting is safe. If you compile with NDEBUG,
|
||||||
|
// this check is removed.
|
||||||
|
|
||||||
|
// DCAST will return NULL if the downcasting is unsafe. If you'd
|
||||||
|
// rather it abort out of the function (ala nassertv/nassertr), then
|
||||||
|
// see DCAST_INTO_V and DCAST_INTO_R, below.
|
||||||
|
|
||||||
|
template<class WantType>
|
||||||
|
INLINE WantType *_dcast(WantType *, TypedObject *ptr);
|
||||||
|
template<class WantType>
|
||||||
|
INLINE const WantType *_dcast(WantType *, const TypedObject *ptr);
|
||||||
|
|
||||||
|
// Note: it is important that DCAST not repeat the pointer parameter,
|
||||||
|
// since many users of DCAST may want to use the result of a function
|
||||||
|
// as the pointer parameter, and it could be terribly confusing and
|
||||||
|
// difficult to trace if the function was executed twice. This
|
||||||
|
// happened!
|
||||||
|
#define DCAST(want_type, pointer) _dcast((want_type*)0, pointer)
|
||||||
|
|
||||||
|
// DCAST_INTO_V and DCAST_INTO_R are similar in purpose to DCAST,
|
||||||
|
// except they: (a) automatically assign a variable instead of
|
||||||
|
// returning the downcasted pointer, and (b) they immediately return
|
||||||
|
// out of the function if the downcasting fails. DCAST_INTO_V is for
|
||||||
|
// use in a void function and returns nothing; DCAST_INTO_R is for use
|
||||||
|
// in a non-void function and returns the indicated value.
|
||||||
|
|
||||||
|
// Both DCAST_INTO_V and DCAST_INTO_R accept as the first parameter a
|
||||||
|
// variable of type (want_type *) or (const want_type *), instead of
|
||||||
|
// the name of the type. This variable will be filled with the new
|
||||||
|
// pointer.
|
||||||
|
|
||||||
|
|
||||||
|
// _dcast_ref is used to implement DCAST_INTO_V and DCAST_INTO_R. Its
|
||||||
|
// difference from _dcast is that it takes a reference to a pointer as
|
||||||
|
// a first parameter. The main point of this is to shut up the
|
||||||
|
// compiler about pointers used before their value is assigned.
|
||||||
|
template<class WantType>
|
||||||
|
INLINE WantType *_dcast_ref(WantType *&, TypedObject *ptr);
|
||||||
|
template<class WantType>
|
||||||
|
INLINE const WantType *_dcast_ref(WantType *&, const TypedObject *ptr);
|
||||||
|
|
||||||
|
|
||||||
|
#define DCAST_INTO_V(to_pointer, from_pointer) \
|
||||||
|
{ \
|
||||||
|
(to_pointer) = _dcast_ref(to_pointer, from_pointer); \
|
||||||
|
nassertv((void *)(to_pointer) != (void *)NULL); \
|
||||||
|
}
|
||||||
|
|
||||||
|
#define DCAST_INTO_R(to_pointer, from_pointer, return_value) \
|
||||||
|
{ \
|
||||||
|
(to_pointer) = _dcast_ref(to_pointer, from_pointer); \
|
||||||
|
nassertr((void *)(to_pointer) != (void *)NULL, return_value); \
|
||||||
|
}
|
||||||
|
|
||||||
|
#include "typedObject.I"
|
||||||
|
|
||||||
|
#endif
|
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
#include <pandabase.h>
|
#include <pandabase.h>
|
||||||
|
|
||||||
#include "typeHandle.h"
|
#include "typedObject.h"
|
||||||
#include "referenceCount.h"
|
#include "referenceCount.h"
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
|
@ -286,7 +286,9 @@ reset() {
|
|||||||
_light_info = new LightInfo[_max_lights];
|
_light_info = new LightInfo[_max_lights];
|
||||||
|
|
||||||
// Set up the clip plane id map
|
// Set up the clip plane id map
|
||||||
glGetIntegerv(GL_MAX_CLIP_PLANES, &_max_clip_planes);
|
GLint max_clip_planes;
|
||||||
|
glGetIntegerv(GL_MAX_CLIP_PLANES, &max_clip_planes);
|
||||||
|
_max_clip_planes = max_clip_planes;
|
||||||
_available_clip_plane_ids = PTA(PlaneNode*)(_max_clip_planes);
|
_available_clip_plane_ids = PTA(PlaneNode*)(_max_clip_planes);
|
||||||
_clip_plane_enabled = new bool[_max_clip_planes];
|
_clip_plane_enabled = new bool[_max_clip_planes];
|
||||||
_cur_clip_plane_enabled = new bool[_max_clip_planes];
|
_cur_clip_plane_enabled = new bool[_max_clip_planes];
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
#define GLXDISPLAY_H
|
#define GLXDISPLAY_H
|
||||||
|
|
||||||
#include <pandabase.h>
|
#include <pandabase.h>
|
||||||
#include <typeHandle.h>
|
#include <typedObject.h>
|
||||||
|
|
||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
#include <pointerTo.h>
|
#include <pointerTo.h>
|
||||||
#include <referenceCount.h>
|
#include <referenceCount.h>
|
||||||
#include <notify.h>
|
#include <notify.h>
|
||||||
#include <typeHandle.h>
|
#include <typedObject.h>
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Class : ArcChain
|
// Class : ArcChain
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
#include "boundingVolume.h"
|
#include "boundingVolume.h"
|
||||||
|
|
||||||
#include <typeHandle.h>
|
#include <typedObject.h>
|
||||||
#include <pointerTo.h>
|
#include <pointerTo.h>
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
#include "node.h"
|
#include "node.h"
|
||||||
#include "nodeRelation.h"
|
#include "nodeRelation.h"
|
||||||
|
|
||||||
#include <typeHandle.h>
|
#include <typedObject.h>
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////
|
||||||
// Class : DFTraverser
|
// Class : DFTraverser
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
#include "nodeRelation.h"
|
#include "nodeRelation.h"
|
||||||
|
|
||||||
#include <typeHandle.h>
|
#include <typedObject.h>
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////
|
||||||
// Class : GraphReducer
|
// Class : GraphReducer
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
#include "node.h"
|
#include "node.h"
|
||||||
#include "config_graph.h"
|
#include "config_graph.h"
|
||||||
|
|
||||||
#include <typeHandle.h>
|
#include <typedObject.h>
|
||||||
|
|
||||||
class Node;
|
class Node;
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
#include <pandabase.h>
|
#include <pandabase.h>
|
||||||
|
|
||||||
#include <typeHandle.h>
|
#include <typedObject.h>
|
||||||
#include <graphicsStateGuardian.h>
|
#include <graphicsStateGuardian.h>
|
||||||
#include <referenceCount.h>
|
#include <referenceCount.h>
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#include <pandabase.h>
|
#include <pandabase.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <typeHandle.h>
|
#include <typedObject.h>
|
||||||
#include <datagram.h>
|
#include <datagram.h>
|
||||||
#include <datagramIterator.h>
|
#include <datagramIterator.h>
|
||||||
#include <notify.h>
|
#include <notify.h>
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#include <pandabase.h>
|
#include <pandabase.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <typeHandle.h>
|
#include <typedObject.h>
|
||||||
#include <datagram.h>
|
#include <datagram.h>
|
||||||
#include <datagramIterator.h>
|
#include <datagramIterator.h>
|
||||||
#include <indent.h>
|
#include <indent.h>
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
#define LVECBASE2_H
|
#define LVECBASE2_H
|
||||||
|
|
||||||
#include <pandabase.h>
|
#include <pandabase.h>
|
||||||
#include <typeHandle.h>
|
#include <typedObject.h>
|
||||||
#include <notify.h>
|
#include <notify.h>
|
||||||
#include <datagram.h>
|
#include <datagram.h>
|
||||||
#include <datagramIterator.h>
|
#include <datagramIterator.h>
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
#define LVECBASE3_H
|
#define LVECBASE3_H
|
||||||
|
|
||||||
#include <pandabase.h>
|
#include <pandabase.h>
|
||||||
#include <typeHandle.h>
|
#include <typedObject.h>
|
||||||
#include <notify.h>
|
#include <notify.h>
|
||||||
#include <datagram.h>
|
#include <datagram.h>
|
||||||
#include <datagramIterator.h>
|
#include <datagramIterator.h>
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
#define LVECBASE4_H
|
#define LVECBASE4_H
|
||||||
|
|
||||||
#include <pandabase.h>
|
#include <pandabase.h>
|
||||||
#include <typeHandle.h>
|
#include <typedObject.h>
|
||||||
#include <notify.h>
|
#include <notify.h>
|
||||||
#include <datagram.h>
|
#include <datagram.h>
|
||||||
#include <datagramIterator.h>
|
#include <datagramIterator.h>
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#include <pandabase.h>
|
#include <pandabase.h>
|
||||||
|
|
||||||
#include <typeHandle.h>
|
#include <typedObject.h>
|
||||||
#include <node.h>
|
#include <node.h>
|
||||||
#include <pt_Node.h>
|
#include <pt_Node.h>
|
||||||
#include <filename.h>
|
#include <filename.h>
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#include <pandabase.h>
|
#include <pandabase.h>
|
||||||
|
|
||||||
#include <typeHandle.h>
|
#include <typedObject.h>
|
||||||
#include <typedReferenceCount.h>
|
#include <typedReferenceCount.h>
|
||||||
|
|
||||||
class BoundingSphere;
|
class BoundingSphere;
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
#include <node.h>
|
#include <node.h>
|
||||||
#include <vector_PT_NodeRelation.h>
|
#include <vector_PT_NodeRelation.h>
|
||||||
|
|
||||||
#include <typeHandle.h>
|
#include <typedObject.h>
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Class : ParametricCurveDrawer
|
// Class : ParametricCurveDrawer
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
#include "pnmimage_base.h"
|
#include "pnmimage_base.h"
|
||||||
|
|
||||||
#include <typeHandle.h>
|
#include <typedObject.h>
|
||||||
#include <typedWritable.h>
|
#include <typedWritable.h>
|
||||||
|
|
||||||
class PNMReader;
|
class PNMReader;
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#include <pandabase.h>
|
#include <pandabase.h>
|
||||||
|
|
||||||
#include <typeHandle.h>
|
#include <typedObject.h>
|
||||||
|
|
||||||
class PNMFileType;
|
class PNMFileType;
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
#include "pnmimage_base.h"
|
#include "pnmimage_base.h"
|
||||||
|
|
||||||
#include <typeHandle.h>
|
#include <typedObject.h>
|
||||||
#include <filename.h>
|
#include <filename.h>
|
||||||
|
|
||||||
class PNMFileType;
|
class PNMFileType;
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
#include <pandabase.h>
|
#include <pandabase.h>
|
||||||
|
|
||||||
#include "numeric_types.h"
|
#include "numeric_types.h"
|
||||||
#include "typeHandle.h"
|
#include "typedObject.h"
|
||||||
#include "indent.h"
|
#include "indent.h"
|
||||||
|
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
#include "config_util.h"
|
#include "config_util.h"
|
||||||
#include "clockObject.h"
|
#include "clockObject.h"
|
||||||
#include "typeHandle.h"
|
#include "typedObject.h"
|
||||||
#include "configurable.h"
|
#include "configurable.h"
|
||||||
#include "namable.h"
|
#include "namable.h"
|
||||||
#include "referenceCount.h"
|
#include "referenceCount.h"
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
#include <pandabase.h>
|
#include <pandabase.h>
|
||||||
|
|
||||||
#include "typeHandle.h"
|
#include "typedObject.h"
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Defines
|
// Defines
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#include <pandabase.h>
|
#include <pandabase.h>
|
||||||
|
|
||||||
#include "typeHandle.h"
|
#include "typedObject.h"
|
||||||
#include "typedReferenceCount.h"
|
#include "typedReferenceCount.h"
|
||||||
#include "factoryParams.h"
|
#include "factoryParams.h"
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#include <pandabase.h>
|
#include <pandabase.h>
|
||||||
|
|
||||||
#include "typeHandle.h"
|
#include "typedObject.h"
|
||||||
#include "typedReferenceCount.h"
|
#include "typedReferenceCount.h"
|
||||||
#include "pointerTo.h"
|
#include "pointerTo.h"
|
||||||
#include "factoryParam.h"
|
#include "factoryParam.h"
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#include <pandabase.h>
|
#include <pandabase.h>
|
||||||
|
|
||||||
#include "typeHandle.h"
|
#include "typedObject.h"
|
||||||
|
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
//
|
//
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#include "typeHandle.h"
|
#include "typedObject.h"
|
||||||
#include "pointerTo.h"
|
#include "pointerTo.h"
|
||||||
#include "pointerToArray.h"
|
#include "pointerToArray.h"
|
||||||
#include "referenceCount.h"
|
#include "referenceCount.h"
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
#ifndef __TYPED_WRITABLE_
|
#ifndef __TYPED_WRITABLE_
|
||||||
#define __TYPED_WRITABLE_
|
#define __TYPED_WRITABLE_
|
||||||
|
|
||||||
#include "typeHandle.h"
|
#include "typedObject.h"
|
||||||
#include "writable.h"
|
#include "writable.h"
|
||||||
#include "vector_typedWritable.h"
|
#include "vector_typedWritable.h"
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
#define __WRITABLE_
|
#define __WRITABLE_
|
||||||
|
|
||||||
#include "vector_writable.h"
|
#include "vector_writable.h"
|
||||||
#include "typeHandle.h"
|
#include "typedObject.h"
|
||||||
|
|
||||||
class BamWriter;
|
class BamWriter;
|
||||||
class Datagram;
|
class Datagram;
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
#include <geomNode.h>
|
#include <geomNode.h>
|
||||||
#include <dftraverser.h>
|
#include <dftraverser.h>
|
||||||
#include <allAttributesWrapper.h>
|
#include <allAttributesWrapper.h>
|
||||||
#include <typeHandle.h>
|
#include <typedObject.h>
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Function: AttribTraverser::constructor
|
// Function: AttribTraverser::constructor
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#include <pandabase.h>
|
#include <pandabase.h>
|
||||||
|
|
||||||
#include <typeHandle.h>
|
#include <typedObject.h>
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
#include <pandabase.h>
|
#include <pandabase.h>
|
||||||
|
|
||||||
#include <arcChain.h>
|
#include <arcChain.h>
|
||||||
#include <typeHandle.h>
|
#include <typedObject.h>
|
||||||
#include <typedReferenceCount.h>
|
#include <typedReferenceCount.h>
|
||||||
#include <notify.h>
|
#include <notify.h>
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
#include <node.h>
|
#include <node.h>
|
||||||
#include <nodeRelation.h>
|
#include <nodeRelation.h>
|
||||||
#include <typeHandle.h>
|
#include <typedObject.h>
|
||||||
#include <geometricBoundingVolume.h>
|
#include <geometricBoundingVolume.h>
|
||||||
#include <graphicsStateGuardian.h>
|
#include <graphicsStateGuardian.h>
|
||||||
#include <arcChain.h>
|
#include <arcChain.h>
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#include <pandabase.h>
|
#include <pandabase.h>
|
||||||
|
|
||||||
#include <typeHandle.h>
|
#include <typedObject.h>
|
||||||
#include <renderRelation.h>
|
#include <renderRelation.h>
|
||||||
|
|
||||||
#include <map>
|
#include <map>
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
#include <pandabase.h>
|
#include <pandabase.h>
|
||||||
|
|
||||||
#include <graphReducer.h>
|
#include <graphReducer.h>
|
||||||
#include <typeHandle.h>
|
#include <typedObject.h>
|
||||||
#include <pointerTo.h>
|
#include <pointerTo.h>
|
||||||
#include <transformTransition.h>
|
#include <transformTransition.h>
|
||||||
#include <colorTransition.h>
|
#include <colorTransition.h>
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#include <pandatoolbase.h>
|
#include <pandatoolbase.h>
|
||||||
|
|
||||||
#include <typeHandle.h>
|
#include <typedObject.h>
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Class : EggBackPointer
|
// Class : EggBackPointer
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
#include "fltOpcode.h"
|
#include "fltOpcode.h"
|
||||||
#include "fltError.h"
|
#include "fltError.h"
|
||||||
|
|
||||||
#include <typeHandle.h>
|
#include <typedObject.h>
|
||||||
#include <typedReferenceCount.h>
|
#include <typedReferenceCount.h>
|
||||||
#include <pointerTo.h>
|
#include <pointerTo.h>
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
#include "iffId.h"
|
#include "iffId.h"
|
||||||
|
|
||||||
#include <typeHandle.h>
|
#include <typedObject.h>
|
||||||
#include <typedReferenceCount.h>
|
#include <typedReferenceCount.h>
|
||||||
|
|
||||||
class IffInputFile;
|
class IffInputFile;
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
#include "iffId.h"
|
#include "iffId.h"
|
||||||
#include "iffChunk.h"
|
#include "iffChunk.h"
|
||||||
|
|
||||||
#include <typeHandle.h>
|
#include <typedObject.h>
|
||||||
#include <pointerTo.h>
|
#include <pointerTo.h>
|
||||||
|
|
||||||
class Datagram;
|
class Datagram;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user