45 #ifndef __BASE_AGENT_CONTEXT_H__
46 #define __BASE_AGENT_CONTEXT_H__
120 virtual void drawGL(
int vWidth,
int vHeight );
139 virtual void activate();
150 virtual void drawUIGL(
int vWidth,
int vHeight,
bool select=
false );
158 virtual void draw3DGL(
bool select=
false );
179 static const float Y;
264 static const unsigned int MAX_TYPE_DIGITS = 10;
269 char _digits[ MAX_TYPE_DIGITS + 1 ];
279 void beginIDTyping();
284 void finishIDTyping();
289 void cancelIDTyping();
299 void addIDDigit(
const char digit );
310 #endif // __BASE_AGENT_CONTEXT_H__
The default operating state.
Definition: BaseAgentContext.h:79
bool _showOrient
Determines if the orientation of the agent is displayed.
Definition: BaseAgentContext.h:244
SDL_Event SDL_Event
Forward declaration of the SDL event type.
Definition: Context.h:53
The core namespace. All elements of Menge are contained in this namespace.
Definition: AgentGenerator.cpp:43
Sets up the proper compiler directives for platform and dll export/import.
void setFSMContext(BFSM::FsmContext *ctx)
Sets the fsm context.
Definition: BaseAgentContext.h:102
BACState _state
The state of the context.
Definition: BaseAgentContext.h:189
A context that performs object selection by directly clicking on selectable entities in the OpenGL co...
Definition: Context.h:352
The SceneGraph (SceneGraph) name space, containing all elements to use in a SceneGraph.
BFSM::FsmContext * _fsmCtx
An optional finite state machine context to visualize the computation of agent behavior.
Definition: BaseAgentContext.h:305
BACState
Definition of the state of the context.
Definition: BaseAgentContext.h:78
Base context for finite state machine elements.
Definition: FsmContext.h:71
unsigned int _digitCount
Number of typed digits.
Definition: BaseAgentContext.h:274
size_t _agtCount
The number of agents in the scene.
Definition: BaseAgentContext.h:259
Context class for displaying various characteristics of the Agents::BaseAgent class.
Definition: BaseAgentContext.h:73
The class which contains the entire drawable scene.
Definition: GLScene.h:72
VisAgent * _selected
The currently selected visualization agent.
Definition: BaseAgentContext.h:184
bool _showNbr
Determines if the neighbors are indicated in the view.
Definition: BaseAgentContext.h:204
Defines the result of the context's consideration of user input.
Definition: Context.h:74
The basic agent visualization class: a selectable cylinder.
Definition: VisAgent.h:66
The namespace contains the Behavior Finite State Machine (BFSM) definition.
bool _showNbrRadius
Determines if the neighbor distance is rendered.
Definition: BaseAgentContext.h:194
The class for controlling the view camera: it's position, orientation field of view, projection matrix, etc.
Definition: GLCamera.h:57
virtual std::string contextName() const
Returns the name of the context for display.
Definition: BaseAgentContext.h:165
Defines the basic agent properties and functionality that all simulation agents share.
Definition: BaseAgent.h:123
bool _showMaxSpd
Determines if the circle of maximum speed is displayed.
Definition: BaseAgentContext.h:214
The namespace that contains the basic simulation mechanisms.
bool _showPrefVel
Determines if the preferred velocity is displayed.
Definition: BaseAgentContext.h:234
VisAgent ** _visAgents
A pointer to the agents in the scene.
Definition: BaseAgentContext.h:254
static const float Y
The drawing depth for the 3D elements.
Definition: BaseAgentContext.h:179
bool _showVel
Determines if the current velocity is displayed.
Definition: BaseAgentContext.h:224
Defines a context for handling user interaction (mouse and keyboard input).