VR-Forces 4.1 Class Documentation
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
14 #include <vrvOsg/vrvOsg.h>
16 #include <osg/Group>
17 #include <osg/Geode>
18 #include <osg/Geometry>
19 #include <osgText/Text>
20 
21 namespace makVrv
22 {
23  class DtDe;
24 
28  {
29  public:
32 
35 
38  virtual void addToConnector( DtOsgSceneConnector* connector );
39 
42  virtual bool removeFromConnector( DtOsgSceneConnector* connector );
43 
45  virtual void drawLine(const osg::Vec4& color, const double lineWidth);
46 
47  virtual void setPosition( int vtx, const DtVector& position );
48 
50  virtual void setVisible (bool isVisible) {}
51 
52  protected:
53 
55  void createText( const std::string& fontName, const osg::Vec4& color, double size );
56 
58  virtual void resetGeode();
59 
60  protected:
61 
62  osg::ref_ptr<osg::Group> myGroup;
63  osg::ref_ptr<osg::Geode> myShapeGeode;
64  osg::ref_ptr<osg::Geometry> myGeometry;
65  osg::ref_ptr<osg::Vec3Array> myPoints;
66 
67  };
68 }

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)