VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtWindowPolygonInstance.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/vrvCore.h>
14 #include <vrvMath/DtVector2.h>
15 #include <vrvMath/DtMatrix3.h>
17 #include <vector>
18 
19 namespace makVrv
20 {
25  {
26  public:
28  virtual ~DtWindowPolygonInstance();
29 
31  virtual void setVertex(int i, double x, double y) = 0;
32 
34  virtual void setFillPattern(unsigned int fillPattern) = 0;
35 
37  virtual void setFill(bool fill) = 0;
38 
40  virtual void setNumVertices(unsigned int numVertices) = 0;
41 
43  virtual void setColor(float r,float g,float b,float a) = 0;
44 
47  virtual void setTransform( DtMatrix3<double> transform ) = 0;
48 
50  virtual void update() = 0;
51 
53  virtual void setClipBox( DtVector2<double> bottomLeftLocation, DtVector2<double> topRightLocation ) = 0;
54 
57  virtual void setGroup( int groupId ) = 0;
58 
63  virtual void setChannelOverlay( const std::string& displayName,
64  const std::string& windowName, const std::string& channelName ) = 0;
65  };
66 
70  {
71  public:
74 
77 
79  static DtWindowPolygonInstanceCreator& instance( DtDe& de );
80 
82  static void registerInstance( DtDe& de, DtWindowPolygonInstanceCreator* instance );
83 
85  virtual DtWindowPolygonInstance* create( );
86  protected:
88  };
89 }
90 
Creator for DtWindowPolygonInstance, will throw if you create on it. osg creator is registered in vrv...
Definition: DtWindowPolygonInstance.h:69
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
3 dimensional matrix
2 dimensional vector
Interface for a DtWindowPolygonInstance An object that draws a 2D Polygon.
Definition: DtWindowPolygonInstance.h:24
Interface for classes with settable visibility, such as a 3D model or 2D graphic. ...
Definition: DtSetVisibilityInterface.h:22
Contains makVrv::DtVirtualBaseClass class.
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
DtDe & myDe
Definition: DtWindowPolygonInstance.h:87
Contains the DtSetVisibilityInterface.
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:72
Contains DLL export macros.

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)