VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Dt3DLineModelInstanceSegmentInterface.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
14 #include <osg/Vec3>
15 #include <osg/Vec4>
16 
17 #include <vector>
18 
19 namespace osg
20 {
21  class Node;
22  class Vec3d;
23 }
24 
25 namespace makVrv
26 {
31  {
32  public:
35 
38 
40  virtual void setStartPoint(const osg::Vec3d& startPoint) = 0;
41 
43  virtual void setEndPoint(const osg::Vec3d& endPoint) = 0;
44 
46  virtual void setColor(const osg::Vec4& color) = 0;
47 
49  virtual void setVertexColor( unsigned int vertexIndex, const osg::Vec4& color ) = 0;
50 
52  virtual void setWidth(double lineWidth) = 0;
53 
55  virtual double width() const = 0;
56 
58  virtual void setStipplePattern(unsigned int stipplePattern, int repeatFactor=1 ) = 0;
59 
61  virtual osg::Node* rootNode() = 0;
62 
64  virtual const std::vector<osg::Vec3>& pickableVertices() const = 0;
65 
67  virtual void update() = 0;
68 
69  protected:
70 
71  };
72 }
73 
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
Contains DLL export macros.
Dt3DLineModelInstanceSegmentInterface is an abstract class providing a common interface for line mode...
Definition: Dt3DLineModelInstanceSegmentInterface.h:30

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)