VR-Forces 5.0.2 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, int 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:76
bool myUseTwoPositions
Definition: DtOsgCylinderModel.h:80
Contains DtCylinderModel declaration.
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:70
OSG implementation of distributed cylinder model.
Definition: DtOsgCylinderModel.h:29

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)