102 virtual cPanel*
copy(
const bool a_duplicateMaterialData =
false,
103 const bool a_duplicateTextureData =
false,
104 const bool a_duplicateMeshData =
false,
105 const bool a_buildCollisionDetector =
false);
108 virtual void set(
const double& a_width,
109 const double& a_height,
110 const double& a_radiusTopLeft = 0,
111 const double& a_radiusTopRight = 0,
112 const double& a_radiusBottomLeft = 0,
113 const double& a_radiusBottomRight = 0);
116 virtual void setSize(
const double& a_width,
117 const double& a_height);
121 const double& a_radiusTopRight = 0,
122 const double& a_radiusBottomLeft = 0,
123 const double& a_radiusBottomRight = 0);
130 const cColorf& a_panelColorTopRight,
131 const cColorf& a_panelColorBottomLeft,
132 const cColorf& a_panelColorBottomRight);
168 virtual void setMargins(
const double a_marginTop,
169 const double a_marginBottom,
170 const double a_marginLeft,
171 const double a_marginRight);
205 const bool a_applyToVertices =
false,
206 const bool a_applyToTextures =
false,
207 const bool a_affectChildren =
false);
258 const bool a_duplicateMaterialData,
259 const bool a_duplicateTextureData,
260 const bool a_duplicateMeshData,
261 const bool a_buildCollisionDetector);
virtual ~cPanel()
Destructor of cPanel.
Definition: CPanel.h:92
virtual double getMarginBottom()
This method returns the value of the bottom margin.
Definition: CPanel.h:183
void setTransparencyLevel(const float a_level, const bool a_applyToVertices=false, const bool a_applyToTextures=false, const bool a_affectChildren=false)
This method assigns a transparency level to this panel.
Definition: CPanel.cpp:301
This class implements a 2D panel widget.
Definition: CPanel.h:80
virtual cPanel * copy(const bool a_duplicateMaterialData=false, const bool a_duplicateTextureData=false, const bool a_duplicateMeshData=false, const bool a_buildCollisionDetector=false)
This method creates a copy of itself.
Definition: CPanel.cpp:491
virtual void updatePanelMesh()
This method updates the mesh model of this panel.
Definition: CPanel.cpp:446
cColorf getColorTopLeft() const
This method returns the color at top left corner of this panel.
Definition: CPanel.h:143
double m_panelRadiusTopRight
Radius of top right corner of this panel.
Definition: CPanel.h:220
double m_marginTop
Top margin that is used to render internal content.
Definition: CPanel.h:238
virtual void setHorizontalLinearGradient(cColorf a_leftColor, cColorf a_rightColor)
This method sets a horizontal gradient color.
Definition: CPanel.cpp:278
virtual void setSize(const double &a_width, const double &a_height)
This method sets the width and height of this panel.
Definition: CPanel.cpp:148
cColorf m_panelColorTopLeft
Panel color at top left corner.
Definition: CPanel.h:271
virtual void setMarginBottom(const double a_marginBottom)
This method assigns a bottom margin value.
Definition: CPanel.cpp:406
void copyPanelProperties(cPanel *a_obj, const bool a_duplicateMaterialData, const bool a_duplicateTextureData, const bool a_duplicateMeshData, const bool a_buildCollisionDetector)
This method copies all properties of this panel to another.
Definition: CPanel.cpp:522
virtual void setCornerColors(const cColorf &a_panelColorTopLeft, const cColorf &a_panelColorTopRight, const cColorf &a_panelColorBottomLeft, const cColorf &a_panelColorBottomRight)
This method sets different colors for all four corners of the panel.
Definition: CPanel.cpp:231
double m_marginRight
Right margin that is used to render internal content.
Definition: CPanel.h:235
bool getShowPanel()
This method returns true is this panel is enabled, false otherwise.
Definition: CPanel.h:158
double m_marginBottom
Bottom margin that is used to render internal content.
Definition: CPanel.h:241
cColorf m_panelColorTopRight
Panel color at top right corner.
Definition: CPanel.h:274
double m_marginLeft
Left margin that is used to render internal content.
Definition: CPanel.h:232
virtual double getMarginLeft()
This method returns the value of the left margin.
Definition: CPanel.h:189
virtual void setMarginLeft(const double a_marginLeft)
This method assigns a left margin value.
Definition: CPanel.cpp:420
virtual void setCornerRadius(const double &a_radiusTopLeft=0, const double &a_radiusTopRight=0, const double &a_radiusBottomLeft=0, const double &a_radiusBottomRight=0)
This method sets the radius for each corner of this panel.
Definition: CPanel.cpp:175
cColorf getColorBottomRight() const
This method returns the color at to left corner of this panel.
Definition: CPanel.h:152
void setShowPanel(const bool a_showPanel)
This method enables or disables the modeling of the panel.
Definition: CPanel.h:155
cColorf m_panelColorBottomRight
Panel color at bottom right corner.
Definition: CPanel.h:280
double m_panelRadiusBottomRight
Radius of bottom right corner of this panel.
Definition: CPanel.h:226
int m_numPanelSegmentsPerCorner
Number of segments used to render each corner of thispanel.
Definition: CPanel.h:229
double m_panelRadiusBottomLeft
Radius of bottom left corner of this panel.
Definition: CPanel.h:223
virtual void setMarginRight(const double a_marginRight)
This method assigns a right margin value.
Definition: CPanel.cpp:434
virtual double getMarginTop()
This method returns the value of the top margin.
Definition: CPanel.h:177
This class defines a color using a GLfloat representation for each component.
Definition: CColor.h:138
bool m_showPanel
If true, panel is enabled for display. false otherwise.
Definition: CPanel.h:244
virtual void setColor(const cColorf &a_panelColor)
This method sets the panel color.
Definition: CPanel.cpp:208
cPanel()
Constructor of cPanel.
Definition: CPanel.cpp:63
Definition: CAudioBuffer.cpp:56
cColorf getColorTopRight() const
This method returns the color at top right corner of this panel.
Definition: CPanel.h:146
virtual double getMarginRight()
This method returns the value of the right margin.
Definition: CPanel.h:195
cColorf m_panelColorBottomLeft
Panel color at bottom left corner.
Definition: CPanel.h:277
double m_panelRadiusTopLeft
Radius of top left corner of this panel.
Definition: CPanel.h:217
virtual void setMarginTop(const double a_marginTop)
This method assigns a top margin value.
Definition: CPanel.cpp:392
virtual void setPanelColorVerticalGradient(cColorf a_topColor, cColorf a_bottomColor)
This method sets a vertical gradient color.
Definition: CPanel.cpp:256
virtual void setMargins(const double a_marginTop, const double a_marginBottom, const double a_marginLeft, const double a_marginRight)
This method assigns margin values to this widget.
Definition: CPanel.cpp:371
cColorf getColorBottomLeft() const
This method returns the color at to left corner of this panel.
Definition: CPanel.h:149