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

panda/src/testbed/min_herc.cxx File Reference

#include <projtexShader.h>
#include <spotlightShader.h>
#include <projtexShadower.h>
#include <planarReflector.h>
#include <chancfg.h>
#include <texture.h>
#include <texturePool.h>
#include <textureTransition.h>
#include <shaderTransition.h>
#include <lightTransition.h>
#include <transformTransition.h>
#include <colorBlendTransition.h>
#include <light.h>
#include <spotlight.h>
#include <pt_NamedNode.h>
#include <geomNode.h>
#include <renderRelation.h>
#include <nodeRelation.h>
#include <dataRelation.h>
#include <dconfig.h>
#include <framework.h>
#include <loader.h>
#include <eventHandler.h>
#include <geomLine.h>
#include <transform2sg.h>
#include <look_at.h>
#include <perspectiveLens.h>
#include <get_rel_pos.h>
#include <planarSlider.h>
#include <mouse.h>
#include <animControl.h>
#include <animControlCollection.h>
#include <auto_bind.h>

Go to the source code of this file.

Functions

 Configure (min_herc)
 ConfigureFn (min_herc)
 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 (PlanarReflector) preflect
 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_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_r (CPT_Event)
 Toggle planar reflection.

void event_z (CPT_Event)
void event_Z (CPT_Event)
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 egg_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 min_herc.cxx.


Function Documentation

Configure min_herc   ) 
 

ConfigureFn min_herc   ) 
 

Definition at line 78 of file min_herc.cxx.

References herc, and spot_shaft.

void event_d CPT_Event   ) 
 

Toggle projected shadows.

Definition at line 219 of file min_herc.cxx.

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

void event_p CPT_Event   ) 
 

Toggle the projective texture being on and off.

Definition at line 167 of file min_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 235 of file min_herc.cxx.

References clear_shader(), and room_arc.

void event_s CPT_Event   ) 
 

Toggle the spotlight being on and off.

Definition at line 194 of file min_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 255 of file min_herc.cxx.

References hide_ball_arc.

void event_z CPT_Event   ) 
 

Definition at line 250 of file min_herc.cxx.

int framework_main int  argc,
char *  argv[]
 

void herc_idle  ) 
 

Definition at line 135 of file min_herc.cxx.

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

void herc_keys EventHandler eh  ) 
 

Definition at line 268 of file min_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 128 of file min_herc.cxx.

int main int  argc,
char *  argv[]
 

Definition at line 443 of file min_herc.cxx.

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 Geom   )  [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 PlanarReflector   ) 
 

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 126 of file min_herc.cxx.

PT_NamedNode ball
 

Definition at line 90 of file min_herc.cxx.

RenderRelation* ball_arc
 

Definition at line 104 of file min_herc.cxx.

RenderRelation* camera_model_arc
 

Definition at line 108 of file min_herc.cxx.

PT_NamedNode cameras
 

Definition at line 115 of file min_herc.cxx.

void(* define_keys)(EventHandler&)
 

Definition at line 124 of file min_herc.cxx.

PT_NamedNode egg_root
 

Definition at line 113 of file min_herc.cxx.

void(* extra_display_func)()
 

Definition at line 123 of file min_herc.cxx.

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

Definition at line 125 of file min_herc.cxx.

bool follow_ball
 

Definition at line 100 of file min_herc.cxx.

PT_NamedNode herc
 

Definition at line 89 of file min_herc.cxx.

RenderRelation* herc_arc
 

Definition at line 106 of file min_herc.cxx.

RenderRelation* herc_rot_arc
 

Definition at line 107 of file min_herc.cxx.

PT_NamedNode hide_ball
 

Definition at line 91 of file min_herc.cxx.

RenderRelation* hide_ball_arc
 

Definition at line 105 of file min_herc.cxx.

NodeAttributes initial_state
 

Definition at line 111 of file min_herc.cxx.

PT_NamedNode lights
 

Definition at line 112 of file min_herc.cxx.

PT_NamedNode render
 

Definition at line 110 of file min_herc.cxx.

RenderRelation* room_arc
 

Definition at line 102 of file min_herc.cxx.

ShaderTransition shader_trans
 

Definition at line 93 of file min_herc.cxx.

RenderRelation* spot_arc
 

Definition at line 103 of file min_herc.cxx.

PT_NamedNode spot_shaft
 

Definition at line 87 of file min_herc.cxx.


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