VAPoR  3.0.0
arrowrenderer.h
Go to the documentation of this file.
1 //-- arrowrenderer.h ----------------------------------------------------------
2 //
3 // Copyright (C) 2011
4 // University Corporation for Atmospheric Research
5 // All Rights Reserved
6 //
7 //----------------------------------------------------------------------------
8 //
9 // File: arrowrenderer.h
10 //
11 // Author: Alan Norton
12 //
13 //
14 // Description: Definition of ArrowRenderer class
15 //
16 //
17 //
18 //----------------------------------------------------------------------------
19 
20 #ifndef ARROWRENDERER_H
21 #define ARROWRENDERER_H
22 
23 #include "vapor/RegularGrid.h"
24 #include "renderer.h"
25 
26 namespace VAPoR {
27 
33 
35  {
36 
37 
38  public:
43 
45  virtual ~ArrowRenderer();
46 
51  return new ArrowRenderer(v,rp);
52  }
53 
54  private:
55 
57  virtual int _initializeGL();
58 
62  virtual int _paintGL(DataMgrV3_0*);
63 
64 
73  int performRendering(DataMgrV3_0* dataMgr, const RenderParams* rParams,
74  int actualRefLevel,float vectorScale, float arrowRadius,
75  RegularGrid *variableData[4]
76  );
77 
82  void drawArrow(const float startPoint[3], const float endPoint[3], float radius);
83 
84  };
85 };
86 
87 #endif //ARROWRENDERER_H
A Params subclass for managing parameters used by Renderers.
Definition: renderparams.h:57
Class that draws the barbs as specified by ArrowParams.
Definition: arrowrenderer.h:34
static Renderer * CreateInstance(Visualizer *v, RenderParams *rp)
Definition: arrowrenderer.h:50
A class for performing OpenGL rendering in VAPOR GUI Window.
Definition: visualizer.h:61
#define RENDER_API
Definition: DC.h:10
A cache based data reader.
Definition: DataMgrV3_0.h:100
A class that performs rendering in a Visualizer.
Definition: renderer.h:95