VR-Forces 4.0.4 Class Documentation
include/vrvCore/DtWindowLine.h
Go to the documentation of this file.
00001 /****************************************************************************** 
00002 ** Copyright (c) 2012 MAK Technologies, Inc. 
00003 ** All rights reserved. 
00004 ******************************************************************************/
00005  
00009  
00010 #pragma once
00011  
00012 #include <vrvCore/vrvCore.h>
00013 #include <vrvCore/DtUniqueID.h>
00014 #include <vrvCore/DtWindowObject.h>
00015 
00016 #include <vector>
00017  
00018 namespace makVrv 
00019 {
00020    class DtDe;
00021    class DtWindowLineInstance;
00022 
00031    class DT_DLL_VRVCORE DtWindowLine : public DtWindowObject
00032    {
00033    public:
00034 
00036       DtWindowLine(DtDe& de, DtUniqueID id);
00037 
00039       virtual ~DtWindowLine();
00040 
00042       virtual void setVertex(unsigned int vertex, double x, double y );  
00043 
00045       virtual void removeVertex(unsigned int vertex );  
00046 
00049       virtual void setStartVertex(double x, double y);
00050 
00053       virtual void setEndVertex(double x, double y);
00054 
00056       virtual void setVisible(bool isVisible);
00057 
00059       virtual void setWidth(unsigned int width);
00060 
00062       virtual void setColor( float r, float g, float b, float a );
00063 
00066       virtual void setStipplePattern( unsigned int pattern );
00067 
00070       virtual void setStyleSegments( const std::vector<double>& segmentPercentages );
00071 
00073       virtual void setSegmentColor(unsigned int index, float r, float g, float b, float a);
00074 
00076       virtual void setSegmentLightningStyle(unsigned int index, bool enableLightningStyle);
00077 
00079       virtual void setSegmentStartArrow(unsigned int index, bool enableStartArrow);
00080 
00082       virtual void setSegmentEndArrow(unsigned int index, bool enableEndArrow);
00083 
00085       virtual void setSegmentStipplePattern(unsigned int index, unsigned int stipplePattern);
00086 
00088       virtual void setSegmentWidth(unsigned int index, unsigned int width);
00089 
00092       virtual void setSegmentStartColor( unsigned int segmentIndex, float r, 
00093          float g, float b, float a );
00094 
00097       virtual void setSegmentEndColor( unsigned int segmentIndex, float r, 
00098          float g, float b, float a );
00099 
00102       virtual void setInstance(DtWindowLineInstance* instance);
00103 
00105       virtual DtWindowLineInstance* instance();
00106 
00107    protected:
00108 
00110       virtual void update();
00111 
00113       virtual void needsUpdate();
00114 
00115 
00116    protected:
00117       DtWindowLineInstance* myInstance;
00118       bool myConnectedToPostUpdate;
00119    }; 
00120 } 
00121 

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)