VR-Forces 4.0.4 Class Documentation
include/vrvCore/DtWindowPolygonInstance.h
Go to the documentation of this file.
00001 /****************************************************************************** 
00002 ** Copyright (c) 2010 MAK Technologies, Inc. 
00003 ** All rights reserved. 
00004 ******************************************************************************/ 
00005 /****************************************************************************** 
00006 ** $RCSfile: DtWindowPolygonInstance.h,v $ $Revision: 1.0 $ $State: Exp $ 
00007 ******************************************************************************/ 
00008  
00012  
00013 #ifndef DtWindowPolygonInstance_H_ 
00014 #define DtWindowPolygonInstance_H_ 
00015  
00016 #include <vrvCore/vrvCore.h>
00017 #include <vrvCore/DtSetVisibilityInterface.h>
00018 
00019 #include <vector>
00020  
00021 namespace makVrv 
00022 {
00026    class DT_DLL_VRVCORE DtWindowPolygonInstance : public DtSetVisibilityInterface
00027    {
00028    public:
00030       struct Vertex
00031       {
00032          double x;
00033          double y;
00034       };
00035 
00036       typedef std::vector<Vertex> VertexList;
00037 
00039       virtual ~DtWindowPolygonInstance();
00040 
00042       virtual void setVertex(int i, double x, double y) = 0;
00043 
00045       virtual void setFillPattern(unsigned int fillPattern) = 0;
00046 
00048       virtual void setFill(bool fill) = 0;
00049 
00051       virtual void setScale(double scale) = 0;
00052 
00054       virtual void setRotation(double rotation) = 0;
00055 
00057       virtual void setNumVertices(unsigned int numVertices) = 0;
00058 
00060       virtual void setColor(float r,float g,float b,float a) = 0;
00061 
00063       virtual const VertexList& vertices() const = 0;
00064    }; 
00065 } 
00066  
00067 #endif 

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)