VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgCylinderModel.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2009 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
14 
15 #include <osg/MatrixTransform>
16 
17 namespace osg
18 {
19  class Group;
20 }
21 
22 namespace makVrv
23 {
24  class DtDe;
25  class DtOsgSceneConnector;
26 
30  {
31  public:
33 
34  virtual ~DtOsgCylinderModel();
35 
36  //@name Distributed Interface
38 
40  virtual void setUseTwoPositions(bool twoPoints);
41 
43  virtual void setDimensions(float length, float width, float height);
44 
46  virtual void setColor(float r,float g,float b,float a);
47 
49  virtual void setPosition( int vtx, const DtVector& position );
50 
52  virtual void setOrientation( int vtx, const DtTaitBryan& orientation );
53 
55  virtual void setLightingEnabled( bool enabled );
56 
58  virtual void setVisible(bool isVisible);
59 
63  virtual void setIsSupportModel(bool isSupport);
64 
66 
67  //@name Local Interface
69 
71  virtual void addToScene( const DtUniqueID& sceneObjectId, DtModelSetId modelSet,
72  int visualizerType );
73 
75  virtual void removeFromScene();
77 
78  protected:
81  };
82 }
83 
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
DtOsgSceneConnector * mySceneConnector
Definition: DtOsgCylinderModel.h:79
Distributed model for drawing cylinders with attached endpoints.
Definition: DtCylinderModel.h:18
DtOsgSceneConnector is used by models to create an OSG position/orientation transform so that it can ...
Definition: DtOsgSceneConnector.h:77
bool myUseTwoPositions
Definition: DtOsgCylinderModel.h:80
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
Contains DtCylinderModel declaration.
DT_DLL_VRVCORE double length(const makVrv::DtCoordinateSystem &, const std::vector< DtVector > &vertices)
Returns the total distance of a segmented line defined by the provided vector of vertices. Coordinates are in local database coordinates. The coordinate system is used to convert between the local database coordinates and geocentric. All distance is in 2D – the Z value is ignored.
Contains DLL export macros.
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
DtModelSetId
Definition: DtModelSetEnums.h:19
OSG implementation of distributed cylinder model.
Definition: DtOsgCylinderModel.h:29

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)