![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2012 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 00009 00010 #ifndef DtWindowLineInstance_H_ 00011 #define DtWindowLineInstance_H_ 00012 00013 #include <vrvCore/vrvCore.h> 00014 #include <vrvCore/DtSetVisibilityInterface.h> 00015 00016 #include <vector> 00017 00018 namespace makVrv 00019 { 00028 class DT_DLL_VRVCORE DtWindowLineInstance : public DtSetVisibilityInterface 00029 { 00030 public: 00032 virtual ~DtWindowLineInstance(); 00033 00035 virtual void setVertex(unsigned int vertex, double x, double y ) = 0; 00036 00038 virtual void removeVertex(unsigned int vertex ) = 0; 00039 00041 virtual void setColor(float r, float g, float b, float a) = 0; 00042 00044 virtual void setStipplePattern(unsigned int stipplePattern) = 0; 00045 00047 virtual void setWidth(unsigned int width) = 0; 00048 00051 virtual void setStyleSegments( 00052 const std::vector<double>& segmentPercentages ) = 0; 00053 00055 virtual void setSegmentColor(unsigned int index, float r, float g, 00056 float b, float a) = 0; 00057 00060 virtual void setSegmentStartColor(unsigned int index, float r, float g, 00061 float b, float a) = 0; 00062 00065 virtual void setSegmentEndColor(unsigned int index, float r, float g, 00066 float b, float a) = 0; 00067 00070 virtual void setSegmentLightningStyle(unsigned int index, 00071 bool enableLightningStyle) = 0; 00072 00074 virtual void setSegmentStartArrow(unsigned int index, 00075 bool enableStartArrow) = 0; 00076 00078 virtual void setSegmentEndArrow(unsigned int index, 00079 bool enableEndArrow) = 0; 00080 00083 virtual void setSegmentStipplePattern(unsigned int index, 00084 unsigned int stipplePattern) = 0; 00085 00087 virtual void setSegmentWidth(unsigned int index, 00088 unsigned int width) = 0; 00089 00091 virtual void update() = 0; 00092 }; 00093 } 00094 00095 #endif