VR-Forces 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:
28 
31  DtSceneObjectAgent* sceneObject, DtModelSetId modelSet );
32 
34  DtAggregateExtentVisualizer() = delete;
35 
38 
40  DtAggregateExtentVisualizer& operator=(const DtAggregateExtentVisualizer&) = delete;
41 
42  public:
44  virtual void initialize() override;
45 
47  virtual ~DtAggregateExtentVisualizer();
48 
50  virtual void setDimensions(const DtVector& dim);
51 
53  virtual void setColor(float r,float g,float b,float a);
54 
56  virtual void setShowExtentsEnabled(bool enabled);
57  bool showExtentsEnabled() const;
58 
60  virtual void setShowOnlyIfSelected(bool);
61  bool showOnlyIfSelected() const;
62 
64  virtual void slot_setSelected(bool);
65 
67  DtAggregateStateListener& aggregateStateListener();
68  const DtAggregateStateListener& aggregateStateListener() const;
69 
71  virtual void refreshForceColor();
72 
73  protected:
74 
76  virtual void createModelAgents();
77 
79  virtual void destroyModelAgents();
80 
82  virtual void setModelDefinitionForAgents();
83 
85  virtual DtModelAgent* createExtentModelAgent() = 0;
86 
89  virtual void adjustSelectionVisibility();
90 
91  protected:
93  float myColor[4];
98 
100 
101  };
102 }
103 
The DtAggregateStateListener extends DtEntityStateListener. It provides a interface to all the visual...
Definition: DtAggregateStateListener.h:33
DtAggregateStateListener * myAggregateStateListener
Definition: DtAggregateExtentVisualizer.h:97
bool myShowExtentsEnabled
Definition: DtAggregateExtentVisualizer.h:96
bool myShowOnlyIfSelected
Definition: DtAggregateExtentVisualizer.h:95
The DtBaseConnection is an abstract class.
Definition: DtBaseConnection.h:35
DtAggregateExtentVisualizer visualize bounding boxes for aggregates.
Definition: DtAggregateExtentVisualizer.h:25
DtModelAgent * myAggregateExtentModelAgent
Definition: DtAggregateExtentVisualizer.h:92
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
Contains makVrv:DtStateVisualizer class.
DtVector myDimensions
Definition: DtAggregateExtentVisualizer.h:94
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:30
Base class to provide boost signal/slot management.
DtModelSetId
Definition: DtModelSetEnums.h:19
The DtStateListener is an abstract class. Subclasses implement functionality that will allow data to ...
Definition: DtStateListener.h:26
DtSignalConnectionManager mySignalConnections
Definition: DtAggregateExtentVisualizer.h:99
Contains DLL export macros.

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)