![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2012 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 00009 00010 #pragma once 00011 00012 #include <vrvOsg/vrvOsg.h> 00013 00014 #include <osg/Vec3> 00015 #include <osg/Vec4> 00016 00017 #include <vector> 00018 00019 namespace osg 00020 { 00021 class Node; 00022 class Vec3d; 00023 } 00024 00025 namespace makVrv 00026 { 00030 class DT_DLL_VRVOSG Dt3DLineModelInstanceSegmentInterface 00031 { 00032 public: 00034 Dt3DLineModelInstanceSegmentInterface(); 00035 00037 ~Dt3DLineModelInstanceSegmentInterface(); 00038 00040 virtual void setStartPoint(const osg::Vec3d& startPoint) = 0; 00041 00043 virtual void setEndPoint(const osg::Vec3d& endPoint) = 0; 00044 00046 virtual void setColor(const osg::Vec4& color) = 0; 00047 00049 virtual void setVertexColor( unsigned int vertexIndex, const osg::Vec4& color ) = 0; 00050 00052 virtual void setWidth(double lineWidth) = 0; 00053 00055 virtual double width() const = 0; 00056 00058 virtual void setStipplePattern(unsigned int stipplePattern, int repeatFactor=1 ) = 0; 00059 00061 virtual osg::Node* rootNode() = 0; 00062 00064 virtual const std::vector<osg::Vec3>& pickableVertices() const = 0; 00065 00067 virtual void update() = 0; 00068 00069 protected: 00070 00071 }; 00072 } 00073