40 #ifndef _GLSMOVINGEYE_H 
   41 #define _GLSMOVINGEYE_H 
   46 #define va_list std::va_list 
   53 #if( defined( GLSGEN_EXPORT_GLSMOVINGEYE ) || defined( GLSGEN_IMPORT_GLSMOVINGEYE ) || defined( GLS_EXPORT_GENERATED ) || defined( GLS_IMPORT_GENERATED ) ) \ 
   54     && defined( _MSC_VER ) 
   55 #    if defined( GLSGEN_EXPORT_GLSMOVINGEYE ) || defined( GLS_EXPORT_GENERATED ) 
   56 #        define GLSGEN_GLSMOVINGEYE_EXPORT __declspec( dllexport ) 
   58 #        define GLSGEN_GLSMOVINGEYE_EXPORT __declspec( dllimport ) 
   61 #    define GLSGEN_GLSMOVINGEYE_EXPORT 
   65 #define LIB_BASE_NAME "gls_moving_eye" 
   74     GLS_MOVINGEYE_EMIT_EVENT = GLS_EYEPOINT_VIEW_VECTORS + 1,
 
   75     GLS_MOVINGEYE_LOOK_AT_OBJECT,
 
   76     GLS_MOVINGEYE_MAX_SPEED,
 
   77     GLS_MOVINGEYE_MOVEMENT,
 
   79     GLS_MOVINGEYE_DISABLE_HISTORY
 
  110     static const char* MOVE_COMPLETE_EVENT_NAME;
 
  365         bool              fovIsHorizontal;
 
  367         double            otherOrthoSize;
 
  370         FovConstraintType horizontalConstraint;
 
  371         FovConstraintType verticalConstraint;
 
  386             return viewVectors[ 2 ];
 
  395         std::string qualifiedEyeName;
 
  435     bool _disableMoveHistory;
 
  516     float MoveTime( 
float distance, 
float desiredTime ) 
const;
 
  524     float RouteDistance( std::vector<GlsEyePoint*>& eyes ) 
const;
 
  543     case GlsMovingEye::CONSTANT:
 
  544         outstr << 
"CONSTANT";
 
  546     case GlsMovingEye::SINUSOIDAL:
 
  547         outstr << 
"SINUSOIDAL";
 
  550         outstr << 
"BAD_MOVEMENT";
 
  561     if( str == 
"CONSTANT" )
 
  563         m = GlsMovingEye::CONSTANT;
 
  565     else if( str == 
"SINUSOIDAL" )
 
  567         m = GlsMovingEye::SINUSOIDAL;
 
  577     case GlsMovingEye::DIRECT:
 
  580     case GlsMovingEye::ARC:
 
  584         outstr << 
"BAD_ROUTE";
 
  595     if( str == 
"DIRECT" )
 
  597         r = GlsMovingEye::DIRECT;
 
  599     else if( str == 
"ARC" )
 
  601         r = GlsMovingEye::ARC;
 
unsigned _historyPos
Current position into the history list. 
Definition: gls_moving_eye.h:413
Vector DirectionToObj(const std::string &qualifiedObjName) const 
void MoveToEye(GlsEyePoint *eye, float moveTime=2.0f)
bool AtEndOfHistory() const 
Definition: gls_moving_eye.h:139
Route_t Route() const 
Definition: gls_moving_eye.h:338
virtual void GetCppInterfaceDescriptionFree(InterfaceListType *array)
float _bufferAngle
Definition: gls_moving_eye.h:473
Definition: dynamic_array.h:62
Movement_t Movement() const 
Definition: gls_moving_eye.h:254
void StartMoving(const MoveParms_t &moveParms)
bool AtStartOfHistory() const 
Definition: gls_moving_eye.h:130
Vector _lookAtCalculatedUpVector
The last up vector calculated by the lookAt algorithm. 
Definition: gls_moving_eye.h:430
virtual InterfaceListType * GetCppInterfaceDescription(InterfaceListType *addToThisList=0)
virtual void CopyProperties(DisplayObject *src)
Movement_t
This specifies the type of route taken from one eyepoint to another. 
Definition: gls_moving_eye.h:96
void ExtractEyepoints(Group *group, std::vector< GlsEyePoint * > &eyes)
bool _firstSegment
Definition: gls_moving_eye.h:410
#define GLSGEN_GLSMOVINGEYE_EXPORT
Provides support for creating DLLs. 
Definition: gls_moving_eye.h:61
virtual void SetAvailableAttributes(unsigned int value)
void MoveToEyeAdd(GlsEyePoint *eye, float moveTime=2.0f)
Definition: gls_glo_file.h:982
bool DisableMoveHistory() const 
Definition: gls_moving_eye.h:195
std::ostream & operator<<(std::ostream &outstr, const AttributeName &name)
Defines the stream out operator. 
bool EmitEvent() const 
Definition: gls_moving_eye.h:182
Vector _upVector
Definition: gls_moving_eye.h:467
Type to store eyepoint state information. 
Definition: gls_moving_eye.h:359
float RouteDistance(std::vector< GlsEyePoint * > &eyes) const 
virtual void SetValue(int spec, va_list &args)
The disti::GlsEyePoint class. Implements eyepoints. 
Route_t _route
Type of route to take when moving to another eyepoint. 
Definition: gls_moving_eye.h:453
double _simTime
Latest known simulation time. 
Definition: gls_moving_eye.h:460
Definition: gls_eyepoint.h:115
float _maxSpeed
Definition: gls_moving_eye.h:443
virtual void GenerateInstanceName()
void MoveToLocation(const Vector &location, float moveTime=2.0f)
void MoveRelative(const Vector &moveAmount, const Vector &rotation)
Route_t
This specifies the type of route taken from one eyepoint to another. 
Definition: gls_moving_eye.h:103
std::queue< MoveParms_t > _moveQ
Definition: gls_moving_eye.h:450
virtual DisplayObject * CloneObject(bool generateNames=false)
double _startTime
Simulation time that a move starts. 
Definition: gls_moving_eye.h:463
std::vector< MoveParms_t > _moveHistory
Stores a history of visited eyepoints for moving back and forth. 
Definition: gls_moving_eye.h:433
float MaxSpeed() const 
Definition: gls_moving_eye.h:240
bool _emitEvent
Whether or not to emit an event when the move has completed. 
Definition: gls_moving_eye.h:405
Vector _lookAtReferenceUpVector
Definition: gls_moving_eye.h:427
std::string _lookAtObject
Definition: gls_moving_eye.h:423
const std::string & LookAtObject() const 
Definition: gls_moving_eye.h:226
Movement_t _movement
Type of movement algorithm to use when moving to another eyepoint. 
Definition: gls_moving_eye.h:446
float MoveTime(float distance, float desiredTime) const 
virtual void Calculate(double time)
static DisplayObject * CreateInstance()
Definition: gls_moving_eye.h:86
Macros and helper code to determine what subset of C++11/14/17 is available. 
friend class GlsMovingEyeEditor
The editor class needs to access this class' privates. :) 
Definition: gls_moving_eye.h:535
bool _initialized
Flag to keep track of when the object gets initialized. 
Definition: gls_moving_eye.h:416
Definition: bmpimage.h:46
Type to store eyepoint movement parameters. 
Definition: gls_moving_eye.h:391
EyeState_t _start
Definition: gls_moving_eye.h:457