ALBA
albaLODActor.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaLODActor
5 Authors: Paolo Quadrani & Silvano Imboden
6
7 Copyright (c) BIC
8 All rights reserved. See Copyright.txt or
9
10
11 This software is distributed WITHOUT ANY WARRANTY; without even
12 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
13 PURPOSE. See the above copyright notice for more information.
14
15=========================================================================*/
16
17#ifndef __albaLODActor_h
18#define __albaLODActor_h
19
20#include "vtkOpenGLActor.h"
21class vtkPointSource;
22class vtkPolyDataMapper;
23class vtkActor;
24
25
26class ALBA_EXPORT albaLODActor : public vtkOpenGLActor
27{
28protected:
29
30public:
31 static albaLODActor *New();
33
34 // Description:
35 void Render(vtkRenderer *ren, vtkMapper *mapper);
36
38 void SetFlagDimension(int flagDimension);
39
41 int GetFlagDimensionMinValue(){return 1;};
42
44 int GetFlagDimensionMaxValue(){return VTK_INT_MAX;};
45
47 int GetFlagDimension(){return m_FlagDimension;};
48
50 void SetPixelThreshold(int pixelThreshold);
51
53 int GetPixelThresholdMinValue(){return 1;};
54
56 int GetPixelThresholdMaxValue(){return VTK_INT_MAX;};
57
59 int GetPixelThreshold(){return m_PixelThreshold;};
60
62 void SetEnableFading(int enableFading);
63
65 int GetEnableFadingMinValue(){return 0;};
66
68 int GetEnableFadingMaxValue(){return 1;};
69
71 void EnableFadingOn(){this->SetEnableFading(true);};
72
74 void EnableFadingOff(){this->SetEnableFading(false);};
75
77 int GetEnableFading(){return m_EnableFading;};
78
80 void SetEnableHighThreshold(int enableHighThreshold);
81
84
87
89 void EnableHighThresholdOn(){this->SetEnableHighThreshold(true);};
90
92 void EnableHighThresholdOff(){this->SetEnableHighThreshold(false);};
93
95 int GetEnableHighThreshold(){return m_EnableHighThreshold;};
96
97protected:
100
101private:
102 albaLODActor(const albaLODActor&); // Not implemented.
103 void operator=(const albaLODActor&); // Not implemented.
104
105 vtkPointSource *m_FlagShape;
106 vtkPolyDataMapper *m_FlagMapper;
107 vtkActor *m_FlagActor;
108
109 int m_PixelThreshold;
110 int m_FlagDimension;
111 int m_EnableFading;
112 int m_EnableHighThreshold;
113};
114#endif
void EnableHighThresholdOn()
Enable high threshold LOD.
Definition: albaLODActor.h:89
int GetFlagDimensionMinValue()
Return the min value of FlagDimension.
Definition: albaLODActor.h:41
void Render(vtkRenderer *ren, vtkMapper *mapper)
int GetFlagDimension()
Get the dimension in pixels of the FlagActor.
Definition: albaLODActor.h:47
void EnableFadingOn()
Enable fade out and fade in for the actor when it switch between one LOD to another.
Definition: albaLODActor.h:71
int GetEnableFadingMaxValue()
Return the max value of EnableFading.
Definition: albaLODActor.h:68
void SetEnableFading(int enableFading)
Enable/Disable fade out and fade in for the actor when it switch between one LOD to another.
void SetEnableHighThreshold(int enableHighThreshold)
Enable/Disable high threshold LOD.
int GetEnableHighThresholdMaxValue()
Return the max value of EnableHighThreshold.
Definition: albaLODActor.h:86
void SetPixelThreshold(int pixelThreshold)
Set the threshold in pixels to switch the actor's shape to the FlagActor representation.
int GetPixelThreshold()
Get the threshold in pixels.
Definition: albaLODActor.h:59
void SetFlagDimension(int flagDimension)
Set the dimension in pixels of the FlagActor representing the actor when its dimensions are too small...
int GetEnableHighThreshold()
Return the status of the high threshold LOD flag.
Definition: albaLODActor.h:95
int GetEnableHighThresholdMinValue()
Return the min value of EnableHighThreshold.
Definition: albaLODActor.h:83
int GetPixelThresholdMaxValue()
Return the max value of PixelThreshold.
Definition: albaLODActor.h:56
void EnableHighThresholdOff()
Disable high threshold LOD.
Definition: albaLODActor.h:92
vtkTypeRevisionMacro(albaLODActor, vtkOpenGLActor)
static albaLODActor * New()
int GetEnableFadingMinValue()
Return the min value of EnableFading.
Definition: albaLODActor.h:65
int GetPixelThresholdMinValue()
Return the min value of PixelThreshold.
Definition: albaLODActor.h:53
void EnableFadingOff()
Disable fade out and fade in for the actor when it switch between one LOD to another.
Definition: albaLODActor.h:74
int GetEnableFading()
Return the status of the fading flag.
Definition: albaLODActor.h:77
int GetFlagDimensionMaxValue()
Return the max value of FlagDimension.
Definition: albaLODActor.h:44