VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtDefaultPointFeatureVisualizer.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2022 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
13 
14 #include <matrix/vlVector.h>
15 
16 namespace makVrv
17 {
18 
19  class DtAttachableCuboidModelAgent;
20  class DtCylinderModelAgent;
21  class DtEllipsoidArcModelAgent;
22  class DtOverlayPolygonModelAgent;
23  class DtSceneObjectAgent;
24  class DtCoordinateSystem;
25 
30  {
31  public:
33 
35 
37  virtual void visualize( DtModelSetId modelSet );
38 
40  virtual std::vector<DtUniqueID> findSceneObjectIds() const;
41 
43  virtual void setColor(const float rgba[4]);
44 
46  virtual void setOutlineColor(const float rgba[4]);
47 
49  virtual void setHighlighted(bool highlighted);
50 
51  protected:
52 
54  void updatePosition(const DtVector& position);
55 
57  void create3dModels(DtModelSetId modelSet);
58 
60  void create2dModels(DtModelSetId modelSet);
61 
62  void updateHighlights();
63 
65  virtual void slot_coordinateSystemChanged();
66 
67  protected:
68 
70 
72  float myOutlineColor[4];
73 
75  DtSceneObjectAgent* my3dAgent;
76  DtSceneObjectAgent* my2dAgent;
77 
79  DtEllipsoidArcModelAgent* mySphereModel;
80  DtAttachableCuboidModelAgent* myCubeModel;
81  DtCylinderModelAgent* myCylinderModel;
82 
84  DtOverlayPolygonModelAgent* my2dOutlinePolygon;
85  DtOverlayPolygonModelAgent* my2dFilledPolygon;
86 
89  DtCoordinateSystem* myCoordinateSystem = nullptr;
90 
91  };
92 
93 }
94 
The default visualization of Point features. Visualizes them as spheres, cylinders and cubes dependin...
Definition: DtDefaultPointFeatureVisualizer.h:29
DtSceneObjectAgent * my2dAgent
Definition: DtDefaultPointFeatureVisualizer.h:76
DtOverlayPolygonModelAgent * my2dFilledPolygon
Definition: DtDefaultPointFeatureVisualizer.h:85
DtSignalConnectionManager myConnections
Definition: DtDefaultPointFeatureVisualizer.h:74
DtCylinderModelAgent * myCylinderModel
Definition: DtDefaultPointFeatureVisualizer.h:81
DtAttachableCuboidModelAgent * myCubeModel
Definition: DtDefaultPointFeatureVisualizer.h:80
The point feature is a feature that describes a single location. Typically an object at that location...
Definition: DtPointFeature.h:20
DtEllipsoidArcModelAgent * mySphereModel
My 3D models.
Definition: DtDefaultPointFeatureVisualizer.h:79
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
DtOverlayPolygonModelAgent * my2dOutlinePolygon
My 2D models.
Definition: DtDefaultPointFeatureVisualizer.h:84
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
bool myHighlightedFlag
Definition: DtDefaultPointFeatureVisualizer.h:71
The point feature visualizer is an abstract class which defines the interface for visualizing a point...
Definition: DtPointFeatureVisualizer.h:21
The DtCoordinateSystem is used to manage the current coordinate system of the scene.
Definition: DtCoordinateSystem.h:40
Contains makVrv::DtPointFeatureVisualizer class.
Base class to provide boost signal/slot management.
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
DtSceneObjectAgent * my3dAgent
Definition: DtDefaultPointFeatureVisualizer.h:75
DtModelSetId
Definition: DtModelSetEnums.h:19
DtDe & myDe
Definition: DtDefaultPointFeatureVisualizer.h:69

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)