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

panda/src/testbed/herc.cxx File Reference

#include <eventHandler.h>
#include <projtexShader.h>
#include <shaderTransition.h>
#include <renderRelation.h>
#include <nodeRelation.h>
#include <chancfg.h>
#include <string>
#include <texGenTransition.h>
#include <colorBlendTransition.h>
#include <colorMaskTransition.h>
#include <textureTransition.h>
#include <texMatrixTransition.h>
#include <spotlightShader.h>
#include <light.h>
#include <loader.h>
#include <look_at.h>
#include <get_rel_pos.h>
#include <transformTransition.h>
#include <geomNode.h>
#include <lightTransition.h>
#include <spotlight.h>
#include <projtexShadower.h>
#include <spheretexHighlighter.h>
#include <spheretexReflector.h>
#include <trackball.h>
#include <planarSlider.h>
#include <transform2sg.h>
#include <mouse.h>
#include <graphicsWindow.h>
#include <planarReflector.h>
#include <stencilTransition.h>
#include <plane.h>
#include <auto_bind.h>
#include <animControl.h>
#include <animControlCollection.h>
#include <renderBuffer.h>
#include <planeNode.h>
#include <outlineShader.h>
#include <pt_NamedNode.h>
#include <geomLine.h>
#include <dconfig.h>

Go to the source code of this file.

Functions

 Configure (shader_test)
 ConfigureFn (shader_test)
 PT (LensNode) tex_proj
 Allocates a new Lens just like this one.

 PT (Trackball) tex_proj_trackball
 PT (ProjtexShader) proj_shader
 PT (ProjtexShadower) proj_shadow
 PT (SpheretexShader) spheretex
 PT (SpheretexHighlighter) highlight
 PT (SpheretexReflector) sreflect
 PT (PlanarReflector) preflect
 PT (OutlineShader) outline_shader
 PT (GeomNode) proj_geom_node
 Returns a Geom that renders the particular glyph.

 PT (Spotlight) tex_proj_spot
 PT (PlanarSlider) ball_slider
 PT (MouseAndKeyboard) mak
void set_alt_trackball (Node *trackball)
 PT (GraphicsWindow) main_win
 Creates a new window on the pipe, if possible.

int framework_main (int argc, char *argv[])
void herc_display_func (void)
void herc_overrides_func (ChanCfgOverrides &override, std::string &)
void herc_idle ()
void event_p (CPT_Event)
 Toggle the projective texture being on and off.

void event_s (CPT_Event)
 Toggle the spotlight being on and off.

void event_d (CPT_Event)
 Toggle projected shadows.

void event_h (CPT_Event)
 Toggle sphere texture highlight.

void event_e (CPT_Event)
 Toggle sphere texture.

void event_m (CPT_Event)
 Toggle sphere texture reflector.

void event_r (CPT_Event)
 Toggle planar reflection.

void event_z (CPT_Event)
void event_Z (CPT_Event)
void event_o (CPT_Event)
 Toggle outline shader.

void herc_keys (EventHandler &eh)
int main (int argc, char *argv[])

Variables

PT_NamedNode spot_shaft
PT_NamedNode herc
PT_NamedNode ball
PT_NamedNode hide_ball
ShaderTransition shader_trans
bool follow_ball
RenderRelation * room_arc
RenderRelation * spot_arc
RenderRelation * ball_arc
RenderRelation * hide_ball_arc
RenderRelation * herc_arc
RenderRelation * herc_rot_arc
RenderRelation * camera_model_arc
PT_NamedNode render
NodeAttributes initial_state
PT_NamedNode lights
PT_NamedNode root
PT_NamedNode cameras
void(* extra_display_func )()
void(* define_keys )(EventHandler &)
void(* extra_overrides_func )(ChanCfgOverrides &, std::string &)
void(* additional_idle )()


Detailed Description

Definition in file herc.cxx.


Function Documentation

Configure shader_test   ) 
 

ConfigureFn shader_test   ) 
 

Definition at line 67 of file herc.cxx.

References herc, and spot_shaft.

void event_d CPT_Event   ) 
 

Toggle projected shadows.

Definition at line 218 of file herc.cxx.

References clear_shader(), NULL, room_arc, and set_alt_trackball().

void event_e CPT_Event   ) 
 

Toggle sphere texture.

Definition at line 248 of file herc.cxx.

References ball_arc, and clear_shader().

void event_h CPT_Event   ) 
 

Toggle sphere texture highlight.

Definition at line 234 of file herc.cxx.

References ball_arc, and clear_shader().

void event_m CPT_Event   ) 
 

Toggle sphere texture reflector.

Definition at line 263 of file herc.cxx.

References ball_arc, and clear_shader().

void event_o CPT_Event   ) 
 

Toggle outline shader.

Definition at line 311 of file herc.cxx.

References clear_shader(), and herc_arc.

void event_p CPT_Event   ) 
 

Toggle the projective texture being on and off.

Definition at line 166 of file herc.cxx.

References ball_arc, clear_shader(), herc_arc, NULL, room_arc, and set_alt_trackball().

void event_r CPT_Event   ) 
 

Toggle planar reflection.

Definition at line 278 of file herc.cxx.

References clear_shader(), and room_arc.

void event_s CPT_Event   ) 
 

Toggle the spotlight being on and off.

Definition at line 193 of file herc.cxx.

References ball_arc, clear_shader(), herc_arc, NULL, room_arc, set_alt_trackball(), and spot_shaft.

void event_Z CPT_Event   ) 
 

Definition at line 298 of file herc.cxx.

References hide_ball_arc.

void event_z CPT_Event   ) 
 

Definition at line 293 of file herc.cxx.

int framework_main int  argc,
char *  argv[]
 

void herc_display_func void   ) 
 

Definition at line 121 of file herc.cxx.

void herc_idle  ) 
 

Definition at line 134 of file herc.cxx.

References ball, ClockObject::get_dt(), ClockObject::get_global_clock(), herc, herc_arc, herc_rot_arc, length(), and look_at().

Referenced by herc_keys().

void herc_keys EventHandler eh  ) 
 

Definition at line 325 of file herc.cxx.

References additional_idle, ball, ball_arc, camera_model, camera_model_arc, follow_ball, geomnode, herc, herc_arc, herc_idle(), herc_rot_arc, hide_ball, hide_ball_arc, loader, NULL, room, room_arc, root, spot_arc, spot_shaft, tball2cam, and tex.

void herc_overrides_func ChanCfgOverrides override,
std::string & 
 

Definition at line 127 of file herc.cxx.

Referenced by main().

int main int  argc,
char *  argv[]
 

Definition at line 528 of file herc.cxx.

References extra_overrides_func, and herc_overrides_func().

PT GraphicsWindow   )  [inline]
 

Creates a new window on the pipe, if possible.

Definition at line 37 of file chancfg.I.

PT MouseAndKeyboard   ) 
 

PT PlanarSlider   ) 
 

PT Spotlight   ) 
 

PT GeomNode   )  [inline]
 

Returns a Geom that renders the particular glyph.

This generates and returns a new GeomNode but does not automatically parent it to the ProjectionScreen node; see regenerate_screen().

The specified projector need not be the same as the projector given to the ProjectionScreen with set_projector() (although this is often what you want).

num_x_verts and num_y_verts specify the number of vertices to make in the grid across the horizontal and vertical dimension of the projector, respectively; distance represents the approximate distance of the screen from the lens center.

Definition at line 237 of file projectionScreen.cxx.

PT OutlineShader   ) 
 

PT PlanarReflector   ) 
 

PT SpheretexReflector   ) 
 

PT SpheretexHighlighter   ) 
 

PT SpheretexShader   ) 
 

PT ProjtexShadower   ) 
 

PT ProjtexShader   ) 
 

PT Trackball   ) 
 

PT LensNode   ) 
 

Allocates a new Lens just like this one.

Definition at line 41 of file cylindricalLens.cxx.

void set_alt_trackball Node *  trackball  ) 
 


Variable Documentation

void(* additional_idle)()
 

Definition at line 118 of file herc.cxx.

Referenced by herc_keys().

PT_NamedNode ball
 

Definition at line 82 of file herc.cxx.

Referenced by herc_idle(), herc_keys(), and load_our_models().

RenderRelation* ball_arc
 

Definition at line 96 of file herc.cxx.

Referenced by event_e(), event_h(), event_m(), event_p(), event_s(), herc_keys(), and load_our_models().

RenderRelation* camera_model_arc
 

Definition at line 100 of file herc.cxx.

Referenced by herc_keys().

PT_NamedNode cameras
 

Definition at line 107 of file herc.cxx.

void(* define_keys)(EventHandler&)
 

Definition at line 116 of file herc.cxx.

Referenced by main().

void(* extra_display_func)()
 

Definition at line 115 of file herc.cxx.

void(* extra_overrides_func)(ChanCfgOverrides&, std::string&)
 

Definition at line 117 of file herc.cxx.

Referenced by main().

bool follow_ball
 

Definition at line 92 of file herc.cxx.

Referenced by event_z(), herc_keys(), and load_our_models().

PT_NamedNode herc
 

Definition at line 81 of file herc.cxx.

Referenced by ConfigureFn(), herc_idle(), and herc_keys().

RenderRelation* herc_arc
 

Definition at line 98 of file herc.cxx.

Referenced by event_o(), event_p(), event_s(), herc_idle(), and herc_keys().

RenderRelation* herc_rot_arc
 

Definition at line 99 of file herc.cxx.

Referenced by herc_idle(), and herc_keys().

PT_NamedNode hide_ball
 

Definition at line 83 of file herc.cxx.

Referenced by herc_keys(), and load_our_models().

RenderRelation* hide_ball_arc
 

Definition at line 97 of file herc.cxx.

Referenced by event_Z(), herc_keys(), and load_our_models().

NodeAttributes initial_state
 

Definition at line 103 of file herc.cxx.

Referenced by RIBGraphicsStateGuardian::prepare_display_region().

PT_NamedNode lights
 

Definition at line 104 of file herc.cxx.

PT_NamedNode render
 

Definition at line 102 of file herc.cxx.

Referenced by attach_sky(), ChanConfig::chan_eval(), and event_T().

RenderRelation* room_arc
 

Definition at line 94 of file herc.cxx.

Referenced by ConfigureFn(), event_d(), event_p(), event_r(), event_s(), herc_keys(), load_our_models(), and min_shader_keys().

PT_NamedNode root
 

Definition at line 105 of file herc.cxx.

Referenced by StaticTextFont::find_character_gsets(), TextNode::generate(), CollisionTraverser::get_collider(), StaticTextFont::get_glyph(), Trackball::get_mat(), get_models(), TypeRegistry::get_num_child_classes(), herc_keys(), main(), PGItem::make_copy(), PartGroup::make_copy(), CollisionTraverser::r_traverse(), VirtualFile::read_file(), CardMaker::rescale_source_geometry(), shader_keys(), and MovingPartBase::write_with_value().

ShaderTransition shader_trans
 

Definition at line 85 of file herc.cxx.

Referenced by ConfigureFn().

RenderRelation* spot_arc
 

Definition at line 95 of file herc.cxx.

Referenced by herc_keys(), setup_shaders(), and shader_keys().

PT_NamedNode spot_shaft
 

Definition at line 79 of file herc.cxx.

Referenced by ConfigureFn(), event_s(), herc_keys(), and setup_shaders().


Generated on Fri May 2 00:46:14 2003 for Panda by doxygen1.3