VR-Vantage 1.4.1 API Class Documentation
DtPolygon.h
Go to the documentation of this file.
00001 /*****************************************************************************
00002  * Copyright (c) 2010 MAK Technologies, Inc.
00003  * All rights reserved.
00004  *****************************************************************************/
00005 /*****************************************************************************
00006  * $RCSfile: DtPolygon.h,v $ $Revision: 1.0 $ $State: Exp $
00007  *****************************************************************************/
00008 
00012 
00013 #pragma once
00014 
00015 #include <vrvGraphics/vrvGraphics.h>
00016 
00017 namespace makVrv
00018 {
00019 
00022    class DT_DLL_VRVGRAPHICS DtPolygon
00023    {
00024    public:
00025      
00026       virtual ~DtPolygon();
00027 
00032       virtual void setVertexCount( unsigned int vertexCount ) = 0;
00033 
00035       virtual unsigned int vertexCount() const = 0;
00036 
00040       virtual void set2DPositions( const std::vector<float>& vertices ) = 0;
00041 
00048       virtual void set2DPosition( unsigned int index, float x, float y ) = 0;
00049 
00053       virtual void get2DPosition( unsigned int index,
00054          float& x, float& y ) const = 0;
00055 
00062       virtual void set3DPosition( unsigned int index,
00063          float x, float y, float z, float w ) = 0;
00064 
00071       virtual void get3DPosition( unsigned int index,
00072          float& x, float& y, float& z, float& w ) const = 0;
00073 
00080       virtual void set3DDirectionAndLength(unsigned int index,
00081          float x, float y, float z, float l) = 0;
00082 
00087       virtual void setStipple( unsigned int stipplePattern ) = 0;
00088 
00095       virtual void setVertexColor( unsigned int index,
00096          float r, float g, float b, float a ) = 0;
00097 
00104       virtual void getVertexColor( unsigned int index,
00105          float& r, float& g, float& b, float& a ) = 0;
00106 
00112       virtual void setColor( float r, float g, float b, float a ) = 0;
00113 
00119       virtual void getColor( float& r, float& g, float& b, float& a ) const = 0;
00120 
00123       virtual void setEventsEnabled(bool b, unsigned long long userData = 0) = 0;
00124      
00125    };
00126 
00127 }
00128 


Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)