VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtDrawModelInstance.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
12 #include <osg/Group>
13 #include <osg/Geode>
14 #include <osg/Geometry>
15 #include <osgText/Text>
16 
17 namespace makVrv
18 {
19  class DtDe;
20 
24  {
25  public:
28 
30  virtual ~DtDrawModelInstance();
31 
34  virtual void addToConnector( DtOsgSceneConnector* connector );
35 
38  virtual bool removeFromConnector( DtOsgSceneConnector* connector );
39 
41  virtual void drawLine(const osg::Vec4& color, const double lineWidth);
42 
43  virtual void setPosition( int vtx, const DtVector& position );
44 
46  virtual void setVisible (bool isVisible) {}
47 
48  protected:
49 
51  void createText( const std::string& fontName, const osg::Vec4& color, double size );
52 
54  virtual void resetGeode();
55 
56  protected:
57 
62 
63  };
64 }
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
voidpf void uLong size
Definition: ioapi.h:39
osg::ref_ptr< osg::Geode > myShapeGeode
Definition: DtDrawModelInstance.h:59
virtual void setVisible(bool isVisible)
no-op
Definition: DtDrawModelInstance.h:46
Contains makVrv::DtOsgModelInstance class.
DtOsgSceneConnector is used by models to create an OSG position/orientation transform so that it can ...
Definition: DtOsgSceneConnector.h:76
osg::ref_ptr< osg::Vec3Array > myPoints
Definition: DtDrawModelInstance.h:61
The base class for simple OSG based model instances. This call can&#39;t be instantiated itself...
Definition: DtOsgModelInstance.h:77
osg::ref_ptr< osg::Group > myGroup
Definition: DtDrawModelInstance.h:58
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
Instance of an OSG-specific attachable draw model.
Definition: DtDrawModelInstance.h:23
osg::ref_ptr< osg::Geometry > myGeometry
Definition: DtDrawModelInstance.h:60

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)