VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
attackLineAttachableUpdater.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
13 #include <vrfGuiCore/vrfGuiCore.h>
15 
16 namespace makVrf
17 {
19  {
20  public:
23 
26  virtual void doAttachment(double);
27 
28  virtual void setAttacker(makVrv::DtElementID);
29  virtual void setTarget(makVrv::DtElementID);
30 
31  virtual void setWedgeSize(double degrees);
32  virtual void setTwoPointMode(bool);
33 
34  protected:
35  struct Object;
36 
37  virtual void setupSceneObject(Object&);
38  virtual bool findSpotReportFor(Object&);
39  virtual bool findSuperiorFor(Object&);
40  virtual void releaseSceneObject(Object&);
41 
42  virtual void slot_sceneObjectToBeDeleted( const makVrv::DtUniqueID& id );
43 
44  virtual bool positionAndOrientation(Object&, double, DtVector& pos, DtTaitBryan& ori) const;
45 
46  virtual DtVector setupPoint(int vtx, const DtVector& origin, const DtVector& offset,
47  const DtVector& offset2D) const;
48 
49  protected:
50  struct Object
51  {
52  Object() : sceneObject(0), spotReportSceneObject(0), pseudoAggregateSceneObject(0),
53  sceneObjectNeedsUpdate(false), spotReportNeedsUpdate(false), pseudoAggregateNeedsUpdate(false) {};
54  virtual ~Object() {};
55 
56  makVrv::DtSceneObject* sceneObject;
67  };
68 
71 
72  double myWedgeSize;
76  };
77 
78 }
makVrv::DtElementID id
Definition: attackLineAttachableUpdater.h:58
bool spotReportNeedsUpdate
Definition: attackLineAttachableUpdater.h:60
makVrv::DtSignalConnectionManager sceneObjectConnections
Definition: attackLineAttachableUpdater.h:64
makVrv::DtSceneObject * pseudoAggregateSceneObject
Definition: attackLineAttachableUpdater.h:61
voidpf uLong int origin
Definition: ioapi.h:42
Definition: attackLineAttachableUpdater.h:18
Object myAttacker
Definition: attackLineAttachableUpdater.h:69
double myOffsetFromOrigin
Definition: attackLineAttachableUpdater.h:73
DtVector position
Definition: attackLineAttachableUpdater.h:63
bool myTwoPointMode
Definition: attackLineAttachableUpdater.h:75
bool pseudoAggregateNeedsUpdate
Definition: attackLineAttachableUpdater.h:62
#define DT_DLL_VRFGUICORE
Contains DLL export macros.
Definition: vrfGuiCore.h:25
Contains the makVrv::DtAttachableUpdater class declaration.
DtUniqueID DtElementID
The ElementID is a specific type of unique ID used to represent VR-Vantage uniquely defined elements...
Definition: DtUniqueID.h:23
makVrv::DtSignalConnectionManager spotReportConnections
Definition: attackLineAttachableUpdater.h:65
A DtAttachableUpdater updates a scene an object that can be positioned in the scene by (possibly) att...
Definition: DtAttachableUpdater.h:35
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
Object()
Definition: attackLineAttachableUpdater.h:52
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
bool sceneObjectNeedsUpdate
Definition: attackLineAttachableUpdater.h:57
makVrv::DtSignalConnectionManager pseudoAggregateConnections
Definition: attackLineAttachableUpdater.h:66
Base class to provide boost signal/slot management.
bool myNextTickIsShow
Definition: attackLineAttachableUpdater.h:74
A DtSceneObject represents an object that can be positioned in the scene by (possibly) attaching it t...
Definition: DtSceneObject.h:44
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:72
virtual ~Object()
Definition: attackLineAttachableUpdater.h:54
voidpf uLong offset
Definition: ioapi.h:42
Object myTarget
Definition: attackLineAttachableUpdater.h:70
makVrv::DtSceneObject * spotReportSceneObject
Definition: attackLineAttachableUpdater.h:59
double myWedgeSize
Definition: attackLineAttachableUpdater.h:72
Definition: attackLineAttachableUpdater.h:50

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)