Open CASCADE Technology
7.6.0
|
This class defines graphic attributes. More...
#include <Graphic3d_Aspects.hxx>
Public Member Functions | |
Graphic3d_Aspects () | |
Creates a context table for drawing primitives defined with the following default values: More... | |
Aspect_InteriorStyle | InteriorStyle () const |
Return interior rendering style; Aspect_IS_SOLID by default. More... | |
void | SetInteriorStyle (const Aspect_InteriorStyle theStyle) |
Modifies the interior type used for rendering. More... | |
Graphic3d_TypeOfShadingModel | ShadingModel () const |
Returns shading model; Graphic3d_TypeOfShadingModel_DEFAULT by default. Graphic3d_TOSM_DEFAULT means that Shading Model set as default for entire Viewer will be used. More... | |
void | SetShadingModel (const Graphic3d_TypeOfShadingModel theShadingModel) |
Sets shading model. More... | |
Graphic3d_AlphaMode | AlphaMode () const |
Returns the way how alpha value should be treated (Graphic3d_AlphaMode_BlendAuto by default, for backward compatibility). More... | |
Standard_ShortReal | AlphaCutoff () const |
Returns alpha cutoff threshold, for discarding fragments within Graphic3d_AlphaMode_Mask mode (0.5 by default). If the alpha value is greater than or equal to this value then it is rendered as fully opaque, otherwise, it is rendered as fully transparent. More... | |
void | SetAlphaMode (Graphic3d_AlphaMode theMode, Standard_ShortReal theAlphaCutoff=0.5f) |
Defines the way how alpha value should be treated. More... | |
const Quantity_ColorRGBA & | ColorRGBA () const |
Return color. More... | |
const Quantity_Color & | Color () const |
Return the color. More... | |
void | SetColor (const Quantity_Color &theColor) |
Modifies the color. More... | |
const Quantity_Color & | InteriorColor () const |
Return interior color. More... | |
const Quantity_ColorRGBA & | InteriorColorRGBA () const |
Return interior color. More... | |
void | SetInteriorColor (const Quantity_Color &theColor) |
Modifies the color of the interior of the face. More... | |
void | SetInteriorColor (const Quantity_ColorRGBA &theColor) |
Modifies the color of the interior of the face. More... | |
const Quantity_Color & | BackInteriorColor () const |
Return back interior color. More... | |
const Quantity_ColorRGBA & | BackInteriorColorRGBA () const |
Return back interior color. More... | |
void | SetBackInteriorColor (const Quantity_Color &theColor) |
Modifies the color of the interior of the back face. More... | |
void | SetBackInteriorColor (const Quantity_ColorRGBA &theColor) |
Modifies the color of the interior of the back face. More... | |
const Graphic3d_MaterialAspect & | FrontMaterial () const |
Returns the surface material of external faces. More... | |
Graphic3d_MaterialAspect & | ChangeFrontMaterial () |
Returns the surface material of external faces. More... | |
void | SetFrontMaterial (const Graphic3d_MaterialAspect &theMaterial) |
Modifies the surface material of external faces. More... | |
const Graphic3d_MaterialAspect & | BackMaterial () const |
Returns the surface material of internal faces. More... | |
Graphic3d_MaterialAspect & | ChangeBackMaterial () |
Returns the surface material of internal faces. More... | |
void | SetBackMaterial (const Graphic3d_MaterialAspect &theMaterial) |
Modifies the surface material of internal faces. More... | |
Graphic3d_TypeOfBackfacingModel | FaceCulling () const |
Return face culling mode; Graphic3d_FaceCulling_BackClosed by default. A back-facing polygon is defined as a polygon whose vertices are in a clockwise order with respect to screen coordinates. More... | |
void | SetFaceCulling (Graphic3d_TypeOfBackfacingModel theCulling) |
Set face culling mode. More... | |
bool | Distinguish () const |
Returns true if material properties should be distinguished for back and front faces (false by default). More... | |
void | SetDistinguish (bool toDistinguish) |
Set material distinction between front and back faces. More... | |
void | SetDistinguishOn () |
Allows material distinction between front and back faces. More... | |
void | SetDistinguishOff () |
Forbids material distinction between front and back faces. More... | |
const Handle< Graphic3d_ShaderProgram > & | ShaderProgram () const |
Return shader program. More... | |
void | SetShaderProgram (const Handle< Graphic3d_ShaderProgram > &theProgram) |
Sets up OpenGL/GLSL shader program. More... | |
const Handle< Graphic3d_TextureSet > & | TextureSet () const |
Return texture array to be mapped. More... | |
void | SetTextureSet (const Handle< Graphic3d_TextureSet > &theTextures) |
Setup texture array to be mapped. More... | |
Handle< Graphic3d_TextureMap > | TextureMap () const |
Return texture to be mapped. More... | |
void | SetTextureMap (const Handle< Graphic3d_TextureMap > &theTexture) |
Assign texture to be mapped. See also SetTextureMapOn() to actually activate texture mapping. More... | |
bool | ToMapTexture () const |
Return true if texture mapping is enabled (false by default). More... | |
bool | TextureMapState () const |
Return true if texture mapping is enabled (false by default). More... | |
void | SetTextureMapOn (bool theToMap) |
Enable or disable texture mapping (has no effect if texture is not set). More... | |
void | SetTextureMapOn () |
Enable texture mapping (has no effect if texture is not set). More... | |
void | SetTextureMapOff () |
Disable texture mapping. More... | |
const Graphic3d_PolygonOffset & | PolygonOffset () const |
Returns current polygon offsets settings. More... | |
void | SetPolygonOffset (const Graphic3d_PolygonOffset &theOffset) |
Sets polygon offsets settings. More... | |
void | PolygonOffsets (Standard_Integer &theMode, Standard_ShortReal &theFactor, Standard_ShortReal &theUnits) const |
Returns current polygon offsets settings. More... | |
void | SetPolygonOffsets (const Standard_Integer theMode, const Standard_ShortReal theFactor=1.0f, const Standard_ShortReal theUnits=0.0f) |
Sets up OpenGL polygon offsets mechanism. <aMode> parameter can contain various combinations of Aspect_PolygonOffsetMode enumeration elements (Aspect_POM_None means that polygon offsets are not changed). If <aMode> is different from Aspect_POM_Off and Aspect_POM_None, then <aFactor> and <aUnits> arguments are used by graphic renderer to calculate a depth offset value: More... | |
parameters specific to Point (Marker) primitive rendering | |
Aspect_TypeOfMarker | MarkerType () const |
Return marker type; Aspect_TOM_POINT by default. More... | |
void | SetMarkerType (Aspect_TypeOfMarker theType) |
Modifies the type of marker. More... | |
Standard_ShortReal | MarkerScale () const |
Return marker scale factor; 1.0 by default. More... | |
void | SetMarkerScale (const Standard_ShortReal theScale) |
Modifies the scale factor. Marker type Aspect_TOM_POINT is not affected by the marker size scale factor. It is always the smallest displayable dot. Warning: Raises Standard_OutOfRange if the scale is a negative value. More... | |
const Handle< Graphic3d_MarkerImage > & | MarkerImage () const |
Returns marker's image texture. Could be null handle if marker aspect has been initialized as default type of marker. More... | |
void | SetMarkerImage (const Handle< Graphic3d_MarkerImage > &theImage) |
Set marker's image texture. More... | |
bool | IsMarkerSprite () const |
Returns TRUE if marker should be drawn using marker sprite (either user-provided or generated). More... | |
parameters specific to text rendering | |
const Handle< TCollection_HAsciiString > & | TextFont () const |
Returns the font; NULL string by default. More... | |
void | SetTextFont (const Handle< TCollection_HAsciiString > &theFont) |
Modifies the font. More... | |
Font_FontAspect | TextFontAspect () const |
Returns text FontAspect. More... | |
void | SetTextFontAspect (Font_FontAspect theFontAspect) |
Turns usage of Aspect text. More... | |
Aspect_TypeOfDisplayText | TextDisplayType () const |
Returns display type; Aspect_TODT_NORMAL by default. More... | |
void | SetTextDisplayType (Aspect_TypeOfDisplayText theType) |
Sets display type. More... | |
const Quantity_ColorRGBA & | ColorSubTitleRGBA () const |
Returns text background/shadow color; equals to EdgeColor() property. More... | |
const Quantity_Color & | ColorSubTitle () const |
Return text background/shadow color; equals to EdgeColor() property. More... | |
void | SetColorSubTitle (const Quantity_Color &theColor) |
Modifies text background/shadow color; equals to EdgeColor() property. More... | |
void | SetColorSubTitle (const Quantity_ColorRGBA &theColor) |
Modifies text background/shadow color; equals to EdgeColor() property. More... | |
bool | IsTextZoomable () const |
Returns TRUE when the Text Zoomable is on. More... | |
void | SetTextZoomable (bool theFlag) |
Turns usage of text zoomable on/off. More... | |
Aspect_TypeOfStyleText | TextStyle () const |
Returns the text style; Aspect_TOST_NORMAL by default. More... | |
void | SetTextStyle (Aspect_TypeOfStyleText theStyle) |
Modifies the style of the text. More... | |
Standard_ShortReal | TextAngle () const |
Returns Angle of degree. More... | |
void | SetTextAngle (Standard_ShortReal theAngle) |
Turns usage of text rotated. 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 | Delete () const |
Memory deallocator for transient classes. More... | |
virtual const opencascade::handle< Standard_Type > & | DynamicType () const |
Returns a type descriptor about this object. More... | |
Standard_Boolean | IsInstance (const opencascade::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 opencascade::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... | |
Standard_Transient * | This () const |
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero. More... | |
Standard_Integer | GetRefCount () const |
Get the reference counter of this object. More... | |
void | IncrementRefCounter () const |
Increments the reference counter of this object. More... | |
Standard_Integer | DecrementRefCounter () const |
Decrements the reference counter of this object; returns the decremented value. More... | |
parameters specific to Mesh Edges (of triangulation primitive) rendering | |
Handle< Graphic3d_ShaderProgram > | myProgram |
Returns true if mesh edges should be drawn (false by default). More... | |
Handle< Graphic3d_TextureSet > | myTextureSet |
Returns true if mesh edges should be drawn (false by default). More... | |
Handle< Graphic3d_MarkerImage > | myMarkerImage |
Returns true if mesh edges should be drawn (false by default). More... | |
Handle< Graphic3d_HatchStyle > | myHatchStyle |
Returns true if mesh edges should be drawn (false by default). More... | |
Handle< TCollection_HAsciiString > | myTextFont |
Returns true if mesh edges should be drawn (false by default). More... | |
Graphic3d_MaterialAspect | myFrontMaterial |
Returns true if mesh edges should be drawn (false by default). More... | |
Graphic3d_MaterialAspect | myBackMaterial |
Returns true if mesh edges should be drawn (false by default). More... | |
Quantity_ColorRGBA | myInteriorColor |
Returns true if mesh edges should be drawn (false by default). More... | |
Quantity_ColorRGBA | myBackInteriorColor |
Returns true if mesh edges should be drawn (false by default). More... | |
Quantity_ColorRGBA | myEdgeColor |
Returns true if mesh edges should be drawn (false by default). More... | |
Graphic3d_PolygonOffset | myPolygonOffset |
Returns true if mesh edges should be drawn (false by default). More... | |
Aspect_InteriorStyle | myInteriorStyle |
Returns true if mesh edges should be drawn (false by default). More... | |
Graphic3d_TypeOfShadingModel | myShadingModel |
Returns true if mesh edges should be drawn (false by default). More... | |
Graphic3d_TypeOfBackfacingModel | myFaceCulling |
Returns true if mesh edges should be drawn (false by default). More... | |
Graphic3d_AlphaMode | myAlphaMode |
Returns true if mesh edges should be drawn (false by default). More... | |
Standard_ShortReal | myAlphaCutoff |
Returns true if mesh edges should be drawn (false by default). More... | |
Aspect_TypeOfLine | myLineType |
Returns true if mesh edges should be drawn (false by default). More... | |
Standard_ShortReal | myLineWidth |
Returns true if mesh edges should be drawn (false by default). More... | |
uint16_t | myLineFactor |
Returns true if mesh edges should be drawn (false by default). More... | |
uint16_t | myLinePattern |
Returns true if mesh edges should be drawn (false by default). More... | |
Aspect_TypeOfMarker | myMarkerType |
Returns true if mesh edges should be drawn (false by default). More... | |
Standard_ShortReal | myMarkerScale |
Returns true if mesh edges should be drawn (false by default). More... | |
Aspect_TypeOfStyleText | myTextStyle |
Returns true if mesh edges should be drawn (false by default). More... | |
Aspect_TypeOfDisplayText | myTextDisplayType |
Returns true if mesh edges should be drawn (false by default). More... | |
Font_FontAspect | myTextFontAspect |
Returns true if mesh edges should be drawn (false by default). More... | |
Standard_ShortReal | myTextAngle |
Returns true if mesh edges should be drawn (false by default). More... | |
bool | myToSkipFirstEdge |
Returns true if mesh edges should be drawn (false by default). More... | |
bool | myToDistinguishMaterials |
Returns true if mesh edges should be drawn (false by default). More... | |
bool | myToDrawEdges |
Returns true if mesh edges should be drawn (false by default). More... | |
bool | myToDrawSilhouette |
Returns true if mesh edges should be drawn (false by default). More... | |
bool | myToMapTexture |
Returns true if mesh edges should be drawn (false by default). More... | |
bool | myIsTextZoomable |
Returns true if mesh edges should be drawn (false by default). More... | |
bool | ToDrawEdges () const |
Returns true if mesh edges should be drawn (false by default). More... | |
void | SetDrawEdges (bool theToDraw) |
Set if mesh edges should be drawn or not. More... | |
void | SetEdgeOn () |
The edges of FillAreas are drawn. More... | |
void | SetEdgeOff () |
The edges of FillAreas are not drawn. More... | |
const Quantity_Color & | EdgeColor () const |
Return color of edges. More... | |
const Quantity_ColorRGBA & | EdgeColorRGBA () const |
Return color of edges. More... | |
void | SetEdgeColor (const Quantity_Color &theColor) |
Modifies the color of the edge of the face. More... | |
void | SetEdgeColor (const Quantity_ColorRGBA &theColor) |
Modifies the color of the edge of the face. More... | |
Aspect_TypeOfLine | EdgeLineType () const |
Return edges line type (same as LineType()). More... | |
void | SetEdgeLineType (Aspect_TypeOfLine theType) |
Modifies the edge line type (same as SetLineType()) More... | |
Standard_ShortReal | EdgeWidth () const |
Return width for edges in pixels (same as LineWidth()). More... | |
void | SetEdgeWidth (Standard_Real theWidth) |
Modifies the edge thickness (same as SetLineWidth()) More... | |
bool | ToSkipFirstEdge () const |
Returns TRUE if drawing element edges should discard first edge in triangle; FALSE by default. Graphics hardware works mostly with triangles, so that wireframe presentation will draw triangle edges by default. This flag allows rendering wireframe presentation of quad-only array split into triangles. For this, quads should be split in specific order, so that the quad diagonal (to be NOT rendered) goes first: 1---—2 / / Triangle #1: 2-0-1; Triangle #2: 0-2-3 0---—3. More... | |
void | SetSkipFirstEdge (bool theToSkipFirstEdge) |
Set skip first triangle edge flag for drawing wireframe presentation of quads array split into triangles. More... | |
bool | ToDrawSilhouette () const |
Returns TRUE if silhouette (outline) should be drawn (with edge color and width); FALSE by default. More... | |
void | SetDrawSilhouette (bool theToDraw) |
Enables/disables drawing silhouette (outline). More... | |
const Handle< Graphic3d_HatchStyle > & | HatchStyle () const |
Returns the hatch type used when InteriorStyle is IS_HATCH. More... | |
void | SetHatchStyle (const Handle< Graphic3d_HatchStyle > &theStyle) |
Modifies the hatch type used when InteriorStyle is IS_HATCH. More... | |
void | SetHatchStyle (const Aspect_HatchStyle theStyle) |
Modifies the hatch type used when InteriorStyle is IS_HATCH. More... | |
bool | IsEqual (const Graphic3d_Aspects &theOther) |
Check for equality with another aspects. More... | |
virtual void | DumpJson (Standard_OStream &theOStream, Standard_Integer theDepth=-1) const |
Dumps the content of me into the stream. More... | |
bool | ToSuppressBackFaces () const |
void | SetSuppressBackFaces (bool theToSuppress) |
bool | BackFace () const |
void | AllowBackFace () |
void | SuppressBackFace () |
parameters specific to Line primitive rendering | |
Aspect_TypeOfLine | LineType () const |
Return line type; Aspect_TOL_SOLID by default. More... | |
void | SetLineType (Aspect_TypeOfLine theType) |
Modifies the line type. More... | |
uint16_t | LinePattern () const |
Return custom stipple line pattern; 0xFFFF by default. More... | |
void | SetLinePattern (uint16_t thePattern) |
Modifies the stipple line pattern, and changes line type to Aspect_TOL_USERDEFINED for non-standard pattern. More... | |
uint16_t | LineStippleFactor () const |
Return a multiplier for each bit in the line stipple pattern within [1, 256] range; 1 by default. More... | |
void | SetLineStippleFactor (uint16_t theFactor) |
Set a multiplier for each bit in the line stipple pattern. More... | |
Standard_ShortReal | LineWidth () const |
Return width for edges in pixels; 1.0 by default. More... | |
void | SetLineWidth (Standard_ShortReal theWidth) |
Modifies the line thickness Warning: Raises Standard_OutOfRange if the width is a negative value. More... | |
static uint16_t | DefaultLinePatternForType (Aspect_TypeOfLine theType) |
Return stipple line pattern for line type. More... | |
static Aspect_TypeOfLine | DefaultLineTypeForPattern (uint16_t thePattern) |
Return line type for stipple line pattern. More... | |
Additional Inherited Members | |
Public Types inherited from Standard_Transient | |
typedef void | base_type |
Returns a type descriptor about this object. More... | |
Static Public Member Functions inherited from Standard_Transient | |
static const char * | get_type_name () |
Returns a type descriptor about this object. More... | |
static const opencascade::handle< Standard_Type > & | get_type_descriptor () |
Returns type descriptor of Standard_Transient class. More... | |
This class defines graphic attributes.
Graphic3d_Aspects::Graphic3d_Aspects | ( | ) |
Creates a context table for drawing primitives defined with the following default values:
|
inline |
|
inline |
Returns alpha cutoff threshold, for discarding fragments within Graphic3d_AlphaMode_Mask mode (0.5 by default). If the alpha value is greater than or equal to this value then it is rendered as fully opaque, otherwise, it is rendered as fully transparent.
|
inline |
Returns the way how alpha value should be treated (Graphic3d_AlphaMode_BlendAuto by default, for backward compatibility).
|
inline |
|
inline |
Return back interior color.
|
inline |
Return back interior color.
|
inline |
Returns the surface material of internal faces.
|
inline |
Returns the surface material of internal faces.
|
inline |
Returns the surface material of external faces.
|
inline |
Return the color.
|
inline |
Return color.
|
inline |
Return text background/shadow color; equals to EdgeColor() property.
|
inline |
Returns text background/shadow color; equals to EdgeColor() property.
|
inlinestatic |
Return stipple line pattern for line type.
|
inlinestatic |
Return line type for stipple line pattern.
|
inline |
Returns true if material properties should be distinguished for back and front faces (false by default).
|
virtual |
Dumps the content of me into the stream.
Reimplemented in Graphic3d_AspectText3d.
|
inline |
Return color of edges.
|
inline |
Return color of edges.
|
inline |
Return edges line type (same as LineType()).
|
inline |
Return width for edges in pixels (same as LineWidth()).
|
inline |
Return face culling mode; Graphic3d_FaceCulling_BackClosed by default. A back-facing polygon is defined as a polygon whose vertices are in a clockwise order with respect to screen coordinates.
|
inline |
Returns the surface material of external faces.
|
inline |
Returns the hatch type used when InteriorStyle is IS_HATCH.
|
inline |
Return interior color.
|
inline |
Return interior color.
|
inline |
Return interior rendering style; Aspect_IS_SOLID by default.
|
inline |
Check for equality with another aspects.
|
inline |
Returns TRUE if marker should be drawn using marker sprite (either user-provided or generated).
|
inline |
Returns TRUE when the Text Zoomable is on.
|
inline |
Return custom stipple line pattern; 0xFFFF by default.
|
inline |
Return a multiplier for each bit in the line stipple pattern within [1, 256] range; 1 by default.
|
inline |
Return line type; Aspect_TOL_SOLID by default.
|
inline |
Return width for edges in pixels; 1.0 by default.
|
inline |
Returns marker's image texture. Could be null handle if marker aspect has been initialized as default type of marker.
|
inline |
Return marker scale factor; 1.0 by default.
|
inline |
Return marker type; Aspect_TOM_POINT by default.
|
inline |
Returns current polygon offsets settings.
|
inline |
Returns current polygon offsets settings.
|
inline |
Defines the way how alpha value should be treated.
|
inline |
Modifies the color of the interior of the back face.
|
inline |
Modifies the color of the interior of the back face.
|
inline |
Modifies the surface material of internal faces.
|
inline |
Modifies the color.
|
inline |
Modifies text background/shadow color; equals to EdgeColor() property.
|
inline |
Modifies text background/shadow color; equals to EdgeColor() property.
|
inline |
Set material distinction between front and back faces.
|
inline |
Forbids material distinction between front and back faces.
|
inline |
Allows material distinction between front and back faces.
|
inline |
Set if mesh edges should be drawn or not.
|
inline |
Enables/disables drawing silhouette (outline).
|
inline |
Modifies the color of the edge of the face.
|
inline |
Modifies the color of the edge of the face.
|
inline |
Modifies the edge line type (same as SetLineType())
|
inline |
The edges of FillAreas are not drawn.
|
inline |
The edges of FillAreas are drawn.
|
inline |
Modifies the edge thickness (same as SetLineWidth())
|
inline |
Set face culling mode.
|
inline |
Modifies the surface material of external faces.
|
inline |
Modifies the hatch type used when InteriorStyle is IS_HATCH.
|
inline |
Modifies the hatch type used when InteriorStyle is IS_HATCH.
|
inline |
Modifies the color of the interior of the face.
|
inline |
Modifies the color of the interior of the face.
|
inline |
Modifies the interior type used for rendering.
|
inline |
Modifies the stipple line pattern, and changes line type to Aspect_TOL_USERDEFINED for non-standard pattern.
|
inline |
Set a multiplier for each bit in the line stipple pattern.
|
inline |
Modifies the line type.
|
inline |
Modifies the line thickness Warning: Raises Standard_OutOfRange if the width is a negative value.
|
inline |
Set marker's image texture.
|
inline |
Modifies the scale factor. Marker type Aspect_TOM_POINT is not affected by the marker size scale factor. It is always the smallest displayable dot. Warning: Raises Standard_OutOfRange if the scale is a negative value.
|
inline |
Modifies the type of marker.
|
inline |
Sets polygon offsets settings.
|
inline |
Sets up OpenGL polygon offsets mechanism. <aMode> parameter can contain various combinations of Aspect_PolygonOffsetMode enumeration elements (Aspect_POM_None means that polygon offsets are not changed). If <aMode> is different from Aspect_POM_Off and Aspect_POM_None, then <aFactor> and <aUnits> arguments are used by graphic renderer to calculate a depth offset value:
offset = <aFactor> * m + <aUnits> * r, where m - maximum depth slope for the polygon currently being displayed, r - minimum window coordinates depth resolution (implementation-specific)
Default settings for OCC 3D viewer: mode = Aspect_POM_Fill, factor = 1., units = 0.
Negative offset values move polygons closer to the viewport, while positive values shift polygons away. Consult OpenGL reference for details (glPolygonOffset function description).
|
inline |
Sets up OpenGL/GLSL shader program.
|
inline |
Sets shading model.
|
inline |
Set skip first triangle edge flag for drawing wireframe presentation of quads array split into triangles.
|
inline |
|
inline |
Turns usage of text rotated.
|
inline |
Sets display type.
|
inline |
Modifies the font.
|
inline |
Turns usage of Aspect text.
|
inline |
Modifies the style of the text.
void Graphic3d_Aspects::SetTextureMap | ( | const Handle< Graphic3d_TextureMap > & | theTexture | ) |
Assign texture to be mapped. See also SetTextureMapOn() to actually activate texture mapping.
|
inline |
Disable texture mapping.
|
inline |
Enable texture mapping (has no effect if texture is not set).
|
inline |
Enable or disable texture mapping (has no effect if texture is not set).
|
inline |
Setup texture array to be mapped.
|
inline |
Turns usage of text zoomable on/off.
|
inline |
Return shader program.
|
inline |
Returns shading model; Graphic3d_TypeOfShadingModel_DEFAULT by default. Graphic3d_TOSM_DEFAULT means that Shading Model set as default for entire Viewer will be used.
|
inline |
|
inline |
Returns Angle of degree.
|
inline |
Returns display type; Aspect_TODT_NORMAL by default.
|
inline |
Returns the font; NULL string by default.
|
inline |
Returns text FontAspect.
|
inline |
Returns the text style; Aspect_TOST_NORMAL by default.
|
inline |
Return texture to be mapped.
|
inline |
Return true if texture mapping is enabled (false by default).
|
inline |
Return texture array to be mapped.
|
inline |
Returns true if mesh edges should be drawn (false by default).
|
inline |
Returns TRUE if silhouette (outline) should be drawn (with edge color and width); FALSE by default.
|
inline |
Return true if texture mapping is enabled (false by default).
|
inline |
Returns TRUE if drawing element edges should discard first edge in triangle; FALSE by default. Graphics hardware works mostly with triangles, so that wireframe presentation will draw triangle edges by default. This flag allows rendering wireframe presentation of quad-only array split into triangles. For this, quads should be split in specific order, so that the quad diagonal (to be NOT rendered) goes first: 1---—2 / / Triangle #1: 2-0-1; Triangle #2: 0-2-3 0---—3.
|
inline |
|
protected |
Returns true if mesh edges should be drawn (false by default).
|
protected |
Returns true if mesh edges should be drawn (false by default).
|
protected |
Returns true if mesh edges should be drawn (false by default).
|
protected |
Returns true if mesh edges should be drawn (false by default).
|
protected |
Returns true if mesh edges should be drawn (false by default).
|
protected |
Returns true if mesh edges should be drawn (false by default).
|
protected |
Returns true if mesh edges should be drawn (false by default).
|
protected |
Returns true if mesh edges should be drawn (false by default).
|
protected |
Returns true if mesh edges should be drawn (false by default).
|
protected |
Returns true if mesh edges should be drawn (false by default).
|
protected |
Returns true if mesh edges should be drawn (false by default).
|
protected |
Returns true if mesh edges should be drawn (false by default).
|
protected |
Returns true if mesh edges should be drawn (false by default).
|
protected |
Returns true if mesh edges should be drawn (false by default).
|
protected |
Returns true if mesh edges should be drawn (false by default).
|
protected |
Returns true if mesh edges should be drawn (false by default).
|
protected |
Returns true if mesh edges should be drawn (false by default).
|
protected |
Returns true if mesh edges should be drawn (false by default).
|
protected |
Returns true if mesh edges should be drawn (false by default).
|
protected |
Returns true if mesh edges should be drawn (false by default).
|
protected |
Returns true if mesh edges should be drawn (false by default).
|
protected |
Returns true if mesh edges should be drawn (false by default).
|
protected |
Returns true if mesh edges should be drawn (false by default).
|
protected |
Returns true if mesh edges should be drawn (false by default).
|
protected |
Returns true if mesh edges should be drawn (false by default).
|
protected |
Returns true if mesh edges should be drawn (false by default).
|
protected |
Returns true if mesh edges should be drawn (false by default).
|
protected |
Returns true if mesh edges should be drawn (false by default).
|
protected |
Returns true if mesh edges should be drawn (false by default).
|
protected |
Returns true if mesh edges should be drawn (false by default).
|
protected |
Returns true if mesh edges should be drawn (false by default).
|
protected |
Returns true if mesh edges should be drawn (false by default).