VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtAggregateExtentVisualizer.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
11 
12 #include <vrvCore/vrvCore.h>
14 #include <matrix/vlVector.h>
15 
17 
18 namespace makVrv
19 {
20  class DtModelAgent;
21  class DtAggregateStateListener;
22 
26  {
27  public:
30  int modelSet);
31 
34  DtSceneObjectAgent* sceneObject, int modelSet );
35 
37  DtAggregateExtentVisualizer() = delete;
38 
41 
43  DtAggregateExtentVisualizer& operator=(const DtAggregateExtentVisualizer&) = delete;
44 
45  public:
47  virtual void initialize() override;
48 
50  virtual ~DtAggregateExtentVisualizer();
51 
53  virtual void setDimensions(const DtVector& dim);
54 
56  virtual void setColor(float r,float g,float b,float a);
57 
59  virtual void setShowExtentsEnabled(bool enabled);
60  bool showExtentsEnabled() const;
61 
63  virtual void setShowOnlyIfSelected(bool);
64  bool showOnlyIfSelected() const;
65 
67  virtual void slot_setSelected(bool);
68 
70  DtAggregateStateListener& aggregateStateListener();
71  const DtAggregateStateListener& aggregateStateListener() const;
72 
74  virtual void refreshForceColor();
75 
76  protected:
77 
79  virtual void createModelAgents();
80 
82  virtual void destroyModelAgents();
83 
85  virtual void setModelDefinitionForAgents();
86 
88  virtual DtModelAgent* createExtentModelAgent() = 0;
89 
92  virtual void adjustSelectionVisibility();
93 
94  protected:
96  float myColor[4];
101 
103 
104  };
105 }
106 
The DtAggregateStateListener extends DtEntityStateListener. It provides a interface to all the visual...
Definition: DtAggregateStateListener.h:33
DtAggregateStateListener * myAggregateStateListener
Definition: DtAggregateExtentVisualizer.h:100
bool myShowExtentsEnabled
Definition: DtAggregateExtentVisualizer.h:99
bool myShowOnlyIfSelected
Definition: DtAggregateExtentVisualizer.h:98
The DtBaseConnection is an abstract class.
Definition: DtBaseConnection.h:38
DtAggregateExtentVisualizer visualize bounding boxes for aggregates.
Definition: DtAggregateExtentVisualizer.h:25
DtModelAgent * myAggregateExtentModelAgent
Definition: DtAggregateExtentVisualizer.h:95
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
Contains makVrv:DtStateVisualizer class.
DtVector myDimensions
Definition: DtAggregateExtentVisualizer.h:97
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
The DtStateVisualizer is an abstract class. Developers derive from this to create logic that &quot;directs...
Definition: DtStateVisualizer.h:32
Base class to provide boost signal/slot management.
The DtStateListener is an abstract class. Subclasses implement functionality that will allow data to ...
Definition: DtStateListener.h:25
DtSignalConnectionManager mySignalConnections
Definition: DtAggregateExtentVisualizer.h:102
Contains DLL export macros.

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)