|
Open CASCADE Technology
6.7.1
|
A colorscale class
More...
#include <V3d_ColorScale.hxx>

Public Member Functions | |
| V3d_ColorScale (const Handle< V3d_LayerMgr > &aMgr) | |
| Returns returns ColorScale from V3d. //! Returns View from V3d. More... | |
| void | Display () |
| void | Erase () |
| Standard_Boolean | IsDisplayed () const |
| virtual void | PaintRect (const Standard_Integer X, const Standard_Integer Y, const Standard_Integer W, const Standard_Integer H, const Quantity_Color &aColor, const Standard_Boolean aFilled=Standard_False) |
| virtual void | PaintText (const TCollection_ExtendedString &aText, const Standard_Integer X, const Standard_Integer Y, const Quantity_Color &aColor) |
| virtual Standard_Integer | TextWidth (const TCollection_ExtendedString &aText) const |
| virtual Standard_Integer | TextHeight (const TCollection_ExtendedString &aText) const |
| void | TextSize (const TCollection_ExtendedString &AText, const Standard_Integer AHeight, Standard_Integer &AWidth, Standard_Integer &AnAscent, Standard_Integer &ADescent) const |
| void | DrawScale () |
Public Member Functions inherited from Aspect_ColorScale | |
| Standard_Boolean | FindColor (const Standard_Real Value, Quantity_Color &Color) const |
| Calculate color according passed value; returns true if value is in range or false, if isn't More... | |
| Standard_Real | GetMin () const |
| Returns minimal value of color scale; More... | |
| Standard_Real | GetMax () const |
| Returns maximal value of color scale; More... | |
| void | GetRange (Standard_Real &aMin, Standard_Real &aMax) const |
| Returns minimal and maximal values of color scale; More... | |
| Aspect_TypeOfColorScaleData | GetLabelType () const |
| Returns the type of labels; Aspect_TOCSD_AUTO - labels as boundary values for intervals Aspect_TOCSD_USER - user specified label is used More... | |
| Aspect_TypeOfColorScaleData | GetColorType () const |
| Returns the type of colors; Aspect_TOCSD_AUTO - value between Red and Blue Aspect_TOCSD_USER - user specified color from color map More... | |
| Standard_Integer | GetNumberOfIntervals () const |
| Returns the number of color scale intervals; More... | |
| TCollection_ExtendedString | GetTitle () const |
| Returns the color scale title string; More... | |
| TCollection_AsciiString | GetFormat () const |
| Returns the format for numbers. The same like format for function printf(). Used if GetLabelType() is TOCSD_AUTO; More... | |
| TCollection_ExtendedString | GetLabel (const Standard_Integer anIndex) const |
| Returns the user specified label with index <anIndex>. Returns empty string if label not defined. More... | |
| Quantity_Color | GetColor (const Standard_Integer anIndex) const |
| Returns the user specified color from color map with index <anIndex>. Returns default color if index out of range in color map. More... | |
| void | GetLabels (TColStd_SequenceOfExtendedString &aLabels) const |
| Returns the user specified labels. More... | |
| void | GetColors (Aspect_SequenceOfColor &aColors) const |
| Returns the user specified colors. More... | |
| Aspect_TypeOfColorScalePosition | GetLabelPosition () const |
| Returns the position of labels concerning color filled rectangles. More... | |
| Aspect_TypeOfColorScalePosition | GetTitlePosition () const |
| Returns the position of color scale title. More... | |
| Standard_Boolean | IsReversed () const |
| Returns true if the labels and colors used in reversed order. More... | |
| Standard_Boolean | IsLabelAtBorder () const |
| Returns true if the labels placed at border of color filled rectangles. More... | |
| void | SetMin (const Standard_Real aMin) |
| Sets the minimal value of color scale. More... | |
| void | SetMax (const Standard_Real aMax) |
| Sets the maximal value of color scale. More... | |
| void | SetRange (const Standard_Real aMin, const Standard_Real aMax) |
| Sets the minimal and maximal value of color scale. More... | |
| void | SetLabelType (const Aspect_TypeOfColorScaleData aType) |
| Sets the type of labels. Aspect_TOCSD_AUTO - labels as boundary values for intervals Aspect_TOCSD_USER - user specified label is used More... | |
| void | SetColorType (const Aspect_TypeOfColorScaleData aType) |
| Sets the type of colors. Aspect_TOCSD_AUTO - value between Red and Blue Aspect_TOCSD_USER - user specified color from color map More... | |
| void | SetNumberOfIntervals (const Standard_Integer aNum) |
| Sets the number of color scale intervals. More... | |
| void | SetTitle (const TCollection_ExtendedString &aTitle) |
| Sets the color scale title string. More... | |
| void | SetFormat (const TCollection_AsciiString &aFormat) |
| Sets the color scale auto label format specification. More... | |
| void | SetLabel (const TCollection_ExtendedString &aLabel, const Standard_Integer anIndex=-1) |
| Sets the color scale label at index. Index started from 1. More... | |
| void | SetColor (const Quantity_Color &aColor, const Standard_Integer anIndex=-1) |
| Sets the color scale color at index. Index started from 1. More... | |
| void | SetLabels (const TColStd_SequenceOfExtendedString &aSeq) |
| Sets the color scale labels. More... | |
| void | SetColors (const Handle< Aspect_ColorMap > &aMap) |
| Sets the color scale colors. More... | |
| void | SetColors (const Aspect_SequenceOfColor &aSeq) |
| Sets the color scale colors. More... | |
| void | SetLabelPosition (const Aspect_TypeOfColorScalePosition aPos) |
| Sets the color scale labels position concerning color filled rectangles. More... | |
| void | SetTitlePosition (const Aspect_TypeOfColorScalePosition aPos) |
| Sets the color scale title position. More... | |
| void | SetReversed (const Standard_Boolean aReverse) |
| Sets true if the labels and colors used in reversed order. More... | |
| void | SetLabelAtBorder (const Standard_Boolean anOn) |
| Sets true if the labels placed at border of color filled rectangles. More... | |
| void | GetSize (Standard_Real &aWidth, Standard_Real &aHeight) const |
| Returns the size of color scale. More... | |
| Standard_Real | GetWidth () const |
| Returns the width of color scale. More... | |
| Standard_Real | GetHeight () const |
| Returns the height of color scale. More... | |
| void | SetSize (const Standard_Real aWidth, const Standard_Real aHeight) |
| Sets the size of color scale. More... | |
| void | SetWidth (const Standard_Real aWidth) |
| Sets the width of color scale. More... | |
| void | SetHeight (const Standard_Real aHeight) |
| Sets the height of color scale. More... | |
| void | GetPosition (Standard_Real &aX, Standard_Real &aY) const |
| Returns the position of color scale. More... | |
| Standard_Real | GetXPosition () const |
| Returns the X position of color scale. More... | |
| Standard_Real | GetYPosition () const |
| Returns the height of color scale. More... | |
| void | SetPosition (const Standard_Real aX, const Standard_Real aY) |
| Sets the position of color scale. More... | |
| void | SetXPosition (const Standard_Real aX) |
| Sets the X position of color scale. More... | |
| void | SetYPosition (const Standard_Real aY) |
| Sets the Y position of color scale. More... | |
| Standard_Integer | GetTextHeight () const |
| void | SetTextHeight (const Standard_Integer aHeigh) |
Public Member Functions inherited from MMgt_TShared | |
| virtual void | Delete () const |
| Memory deallocator for transient classes. More... | |
Public Member Functions inherited from Standard_Transient | |
| Standard_Transient () | |
| Empty constructor. More... | |
| Standard_Transient (const Standard_Transient &) | |
| Copy constructor – does nothing. More... | |
| Standard_Transient & | operator= (const Standard_Transient &) |
| Assignment operator, needed to avoid copying reference counter. More... | |
| virtual | ~Standard_Transient () |
| Destructor must be virtual. More... | |
| virtual void | ShallowDump (Standard_OStream &) const |
| virtual const Handle_Standard_Type & | DynamicType () const |
| Returns a type information object about this object. More... | |
| Standard_Boolean | IsInstance (const Handle_Standard_Type &theType) const |
| Returns a true value if this is an instance of Type. More... | |
| Standard_Boolean | IsInstance (const Standard_CString theTypeName) const |
| Returns a true value if this is an instance of TypeName. More... | |
| Standard_Boolean | IsKind (const Handle_Standard_Type &theType) const |
| Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More... | |
| Standard_Boolean | IsKind (const Standard_CString theTypeName) const |
| Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More... | |
| virtual Handle_Standard_Transient | This () const |
| Returns a Handle which references this object. Must never be called to objects created in stack. More... | |
| Standard_Integer | GetRefCount () const |
| Get the reference counter of this object. More... | |
Protected Member Functions | |
| virtual void | UpdateColorScale () |
Protected Member Functions inherited from Aspect_ColorScale | |
| Aspect_ColorScale () | |
| void | SizeHint (Standard_Integer &aWidth, Standard_Integer &aHeight) const |
| void | DrawScale (const Quantity_Color &aBgColor, const Standard_Integer X, const Standard_Integer Y, const Standard_Integer W, const Standard_Integer H) |
| virtual Standard_Boolean | BeginPaint () |
| virtual Standard_Boolean | EndPaint () |
Additional Inherited Members | |
Static Public Member Functions inherited from Aspect_ColorScale | |
| static Standard_Boolean | FindColor (const Standard_Real Value, const Standard_Real Min, const Standard_Real Max, const Standard_Integer ColorsCount, Quantity_Color &Color) |
A colorscale class
| V3d_ColorScale::V3d_ColorScale | ( | const Handle< V3d_LayerMgr > & | aMgr | ) |
| void V3d_ColorScale::Display | ( | ) |
| void V3d_ColorScale::DrawScale | ( | ) |
| void V3d_ColorScale::Erase | ( | ) |
| Standard_Boolean V3d_ColorScale::IsDisplayed | ( | ) | const |
|
virtual |
Implements Aspect_ColorScale.
|
virtual |
Implements Aspect_ColorScale.
|
virtual |
Implements Aspect_ColorScale.
| void V3d_ColorScale::TextSize | ( | const TCollection_ExtendedString & | AText, |
| const Standard_Integer | AHeight, | ||
| Standard_Integer & | AWidth, | ||
| Standard_Integer & | AnAscent, | ||
| Standard_Integer & | ADescent | ||
| ) | const |
|
virtual |
Implements Aspect_ColorScale.
|
protectedvirtual |
Reimplemented from Aspect_ColorScale.
1.8.5