VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtPolygonInterface.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2023 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/vrvCore.h>
13 
14 #include <matrix/vlVector.h>
15 
16 namespace makVrv
17 {
18 
22  {
23  public:
24 
26  DtPolygonInterface() = default;
27 
30 
33 
35  DtPolygonInterface& operator=(DtPolygonInterface&) = delete;
36 
38  DtPolygonInterface& operator=(DtPolygonInterface&&) = delete;
39 
41  virtual ~DtPolygonInterface();
42 
43  public:
44 
49  virtual void setVertexCount( unsigned int vertexCount ) = 0;
50 
52  virtual unsigned int vertexCount() const = 0;
53 
57  virtual void set2DPositions( const std::vector<float>& vertices ) = 0;
58 
65  virtual void set2DPosition( unsigned int index, float x, float y ) = 0;
66 
70  virtual void get2DPosition( unsigned int index,
71  float& x, float& y ) const = 0;
72 
79  virtual void set3DPosition( unsigned int index,
80  float x, float y, float z, float w ) = 0;
81 
88  virtual void get3DPosition( unsigned int index,
89  float& x, float& y, float& z, float& w ) const = 0;
90 
97  virtual void set3DDirectionAndLength(unsigned int index,
98  float x, float y, float z, float l) = 0;
99 
104  virtual void setStipple( unsigned int stipplePattern ) = 0;
105 
112  virtual void setVertexColor( unsigned int index,
113  float r, float g, float b, float a ) = 0;
114 
121  virtual void getVertexColor( unsigned int index,
122  float& r, float& g, float& b, float& a ) = 0;
123 
129  virtual void setColor( float r, float g, float b, float a ) = 0;
130 
136  virtual void getColor( float& r, float& g, float& b, float& a ) const = 0;
137 
140  virtual void setEventsEnabled(bool b, unsigned long long userData = 0) = 0;
141 
143  virtual int group() const = 0;
144 
146  virtual void setGroup(int) = 0;
147 
151  virtual void triangulationComplete(bool crossingLines);
152  };
153 
154 }
155 
An abstract interface for a polygon primitive.
Definition: DtPolygonInterface.h:21
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
Contains DLL export macros.

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)