VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtProjected2DLineEffect.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvGraphics/Dt2DEffect.h>
13 
14 namespace makVrv
15 {
20  {
21  public:
22 
24  DtProjected2DLineEffect(const std::string& dataPath);
25 
27  virtual ~DtProjected2DLineEffect();
28 
30  virtual void setCamera(bool geocentric, float geocentricAlpha,
31  const double position[3]
32  , const double positionMatrix[16]
33  , const double projectionMatrix[16]);
34 
35  //Set the number of groups.
36  virtual void setGroupCount(unsigned int count);
37 
38  virtual void setVertexAttribPointers(size_t stride
39  , const VertexAttribPtrInfo& positionAddress
40  , const VertexAttribPtrInfo& colorAddress
41  , const VertexAttribPtrInfo& offsetAddress
42  , const VertexAttribPtrInfo& directionAndLengthAddress);
43 
44  virtual void unsetVertexAttribPointers();
45  protected:
46 
47  virtual void updateUniformLocations();
48  virtual void updateUniforms();
49  virtual void initializeShaderSource( void );
50 
51  protected:
58 
59 
60  unsigned int myUnit;
61  unsigned int myGroupCount;
62  double myCameraPos[3];
63  double myMatrix[16];
64  double myProjectionMatrix[16];
67 
68  void updateOtherUniforms(void);
69  };
70 
71 
75  {
76  public:
77  virtual DtEffect* create(const std::string& dataPath, CreateParameters* params = 0)
78  {
79  return new DtProjected2DLineEffect(dataPath);
80  }
81  };
82 }
83 
unsigned int myGroupCount
Definition: DtProjected2DLineEffect.h:61
Contains the makVrv::Dt2DEffect class declaration.
Abstract creator class for registering effects with a effects manager.
Definition: DtEffect.h:94
int myUniform_ProjectionMat
Definition: DtProjected2DLineEffect.h:54
float myGeocentricAlpha
Definition: DtProjected2DLineEffect.h:66
virtual DtEffect * create(const std::string &dataPath, CreateParameters *params=0)
Definition: DtProjected2DLineEffect.h:77
bool myGeocentricFlag
Definition: DtProjected2DLineEffect.h:65
A creator class for the Projected 2D line effect.
Definition: DtProjected2DLineEffect.h:74
int myUniform_CameraMat
Definition: DtProjected2DLineEffect.h:53
#define DT_DLL_VRVGRAPHICS
Contains DLL export macros.
Definition: vrvGraphics.h:19
int myUniform_Sphere
Definition: DtProjected2DLineEffect.h:56
Definition: DtEffect.h:23
The base class for a programmable pipeline render effect.
Definition: DtEffect.h:19
An effect for rendering 2D projected lines Has support for direction and length information per verte...
Definition: DtProjected2DLineEffect.h:19
unsigned int myUnit
Definition: DtProjected2DLineEffect.h:60
The 2D effect is an abstract interface for effects used to render in 2D.
Definition: Dt2DEffect.h:19
int myUniform_OccludedAlpha
Definition: DtProjected2DLineEffect.h:57
int myUniform_CameraPos
Definition: DtProjected2DLineEffect.h:52
int myUniform_GroupCount
Definition: DtProjected2DLineEffect.h:55

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)