Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/express/dcast.h File Reference

#include "pandabase.h"
#include "typeHandle.h"
#include "typedObject.h"
#include "dcast.T"

Go to the source code of this file.

Defines

#define DCAST(want_type, pointer)   _dcast((want_type*)0, pointer)
#define DCAST_INTO_V(to_pointer, from_pointer)
#define DCAST_INTO_R(to_pointer, from_pointer, return_value)

Functions

template<class WantType> WantType * _dcast (WantType *, TypedObject *ptr)
template<class WantType> const WantType * _dcast (WantType *, const TypedObject *ptr)
template<class WantType> WantType * _dcast_ref (WantType *&, TypedObject *ptr)
template<class WantType> const WantType * _dcast_ref (WantType *&, const TypedObject *ptr)
EXPCL_PANDAEXPRESS bool _dcast_verify (TypeHandle want_handle, size_t want_size, const TypedObject *ptr)
 This function performs the actual check that the indicated TypedObject pointer is of the intended type.


Detailed Description

Definition in file dcast.h.


Define Documentation

#define DCAST want_type,
pointer   )     _dcast((want_type*)0, pointer)
 

Definition at line 50 of file dcast.h.

Referenced by TransformState::calc_components(), CharacterJointBundle::CharacterJointBundle(), CharacterJoint::clear_local_transforms(), EggMaterialCollection::collapse_equivalent_materials(), EggTextureCollection::collapse_equivalent_textures(), PandaNode::CData::complete_up_list(), DeferredNodeProperty::compose(), AnimBundleMaker::create_s_channel(), CharacterMaker::create_slider(), AnimBundleMaker::create_xfm_channel(), ProjectionScreen::cull_callback(), DataNode::define_output(), RenderEffects::determine_decal(), RenderState::do_compose(), RenderState::do_invert_compose(), DXGraphicsStateGuardian8::draw_sphere(), CharacterMaker::egg_to_index(), RIBGraphicsWindow::end_frame(), NodePath::find_all_textures(), EggLoader::find_collision_geometry(), EggGroupNode::find_textures(), NodePath::get_bin_draw_order(), NodePath::get_bin_name(), EggBinMaker::get_bins_for_group(), NodePath::get_color(), BamReader::get_current_minor_ver(), StaticTextFont::get_glyph(), NodePath::get_quat(), NodePath::get_scale(), NodePath::has_bin(), NodePath::has_material(), NodePath::has_texture_off(), NodePath::has_transparency(), EggMaterialCollection::insert_materials(), EggTextureCollection::insert_textures(), EggLoader::make_collision_plane(), CharacterJoint::make_copy(), AnimBundleMaker::make_node(), PartBundleNode::PartBundleNode(), PartGroup::pick_channel_index(), MovingPartBase::pick_channel_index(), GLGraphicsStateGuardian::prepare_geom_node(), PT(), EggGroupNode::r_flatten_transforms(), EggXfmSAnim::r_transform(), EggGroupNode::r_transform_vertices(), ProjectionScreen::recompute_if_stale(), EggGroupNode::recompute_polygon_normals(), EggGroupNode::remove_child(), AnimControl::remove_event(), RIBGraphicsWindow::set_image_filename_template(), NodePath::set_mat(), NodePath::set_material(), NodePath::set_transparency(), EggGroupNode::steal_children(), DataGraphTraverser::traverse(), RenderEffects::write(), CollisionNode::xform(), and GeomNode::~GeomNode().

#define DCAST_INTO_R to_pointer,
from_pointer,
return_value   ) 
 

Value:

{ \
    (to_pointer) = _dcast_ref(to_pointer, from_pointer); \
    nassertr((void *)(to_pointer) != (void *)NULL, return_value); \
  }

Definition at line 87 of file dcast.h.

Referenced by LightAttrib::compare_to_impl(), CullFaceAttrib::compare_to_impl(), ClipPlaneAttrib::compare_to_impl(), EggNode::determine_draw_order(), PGItem::has_cull_callback(), CullFaceAttrib::issue(), TextureAttrib::output(), TexMatrixAttrib::output(), RenderModeAttrib::output(), MaterialAttrib::output(), LightAttrib::output(), FogAttrib::output(), DepthWriteAttrib::output(), DepthTestAttrib::output(), DepthOffsetAttrib::output(), CullBinAttrib::output(), ColorWriteAttrib::output(), ColorScaleAttrib::output(), ColorAttrib::output(), ClipPlaneAttrib::output(), AlphaTestAttrib::output(), NodePath::set_transparency(), and CollisionPolygon::test_intersection_from_ray().

#define DCAST_INTO_V to_pointer,
from_pointer   ) 
 

Value:

{ \
    (to_pointer) = _dcast_ref(to_pointer, from_pointer); \
    nassertv((void *)(to_pointer) != (void *)NULL); \
  }

Definition at line 81 of file dcast.h.

Referenced by Trackball::apply(), PandaFramework::clear_highlight(), PandaFramework::do_enable_default_keys(), DisplayRegion::get_layer(), NodePath::get_transparency(), MouseWatcher::global_keyboard_press(), ButtonThrower::has_throw_button(), PandaFramework::main_loop(), PandaFramework::make_default_pipe(), PandaFramework::make_window_framework(), CollisionLevelState::reserve(), Transform2SG::set_velocity_node(), Character::update(), glxGraphicsWindow::~glxGraphicsWindow(), and wglGraphicsWindow::~wglGraphicsWindow().


Function Documentation

template<class WantType>
const WantType* _dcast WantType *  ,
const TypedObject ptr
[inline]
 

template<class WantType>
WantType* _dcast WantType *  ,
TypedObject ptr
[inline]
 

template<class WantType>
const WantType* _dcast_ref WantType *&  ,
const TypedObject ptr
[inline]
 

template<class WantType>
WantType* _dcast_ref WantType *&  ,
TypedObject ptr
[inline]
 

EXPCL_PANDAEXPRESS bool _dcast_verify TypeHandle  want_handle,
size_t  want_size,
const TypedObject ptr
 

This function performs the actual check that the indicated TypedObject pointer is of the intended type.

Definition at line 43 of file dcast.cxx.


Generated on Fri May 2 00:45:31 2003 for Panda by doxygen1.3