VR-Forces 4.8 Class Documentation
 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 /******************************************************************************
6 ** $RCSfile: DtDrawModelInstance.h,v $ $Revision: 1.10 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #pragma once
15 #include <osg/Group>
16 #include <osg/Geode>
17 #include <osg/Geometry>
18 #include <osgText/Text>
19 
20 namespace makVrv
21 {
22  class DtDe;
23 
27  {
28  public:
31 
33  virtual ~DtDrawModelInstance();
34 
37  virtual void addToConnector( DtOsgSceneConnector* connector );
38 
41  virtual bool removeFromConnector( DtOsgSceneConnector* connector );
42 
44  virtual void drawLine(const osg::Vec4& color, const double lineWidth);
45 
46  virtual void setPosition( int vtx, const DtVector& position );
47 
49  virtual void setVisible (bool isVisible) {}
50 
51  protected:
52 
54  void createText( const std::string& fontName, const osg::Vec4& color, double size );
55 
57  virtual void resetGeode();
58 
59  protected:
60 
65 
66  };
67 }
#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:62
virtual void setVisible(bool isVisible)
no-op
Definition: DtDrawModelInstance.h:49
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:64
The base class for simple OSG based model instances.
Definition: DtOsgModelInstance.h:72
osg::ref_ptr< osg::Group > myGroup
Definition: DtDrawModelInstance.h:61
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
Instance of an OSG-specific attachable draw model.
Definition: DtDrawModelInstance.h:26
osg::ref_ptr< osg::Geometry > myGeometry
Definition: DtDrawModelInstance.h:63

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)