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 
71  virtual void get2DPosition( unsigned int index,
72  float& x, float& y ) const = 0;
73 
80  virtual void set3DPosition( unsigned int index,
81  float x, float y, float z, float w ) = 0;
82 
89  virtual void get3DPosition( unsigned int index,
90  float& x, float& y, float& z, float& w ) const = 0;
91 
98  virtual void set3DDirectionAndLength(unsigned int index,
99  float x, float y, float z, float l) = 0;
100 
105  virtual void setStipple( unsigned int stipplePattern ) = 0;
106 
113  virtual void setVertexColor( unsigned int index,
114  float r, float g, float b, float a ) = 0;
115 
122  virtual void getVertexColor( unsigned int index,
123  float& r, float& g, float& b, float& a ) = 0;
124 
130  virtual void setColor( float r, float g, float b, float a ) = 0;
131 
137  virtual void getColor( float& r, float& g, float& b, float& a ) const = 0;
138 
141  virtual void setEventsEnabled(bool b, unsigned long long userData = 0) = 0;
142 
144  virtual int group() const = 0;
145 
147  virtual void setGroup(int) = 0;
148 
152  virtual void triangulationComplete(bool crossingLines);
153  };
154 
155 }
156 
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 Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)