Open CASCADE Technology 6.6.0
Public Member Functions | Protected Attributes
Graphic3d_AspectMarker3d Class Reference

Creates and updates an attribute group for
marker type primitives. This group contains the type
of marker, its colour, and its scale factor.

#include <Graphic3d_AspectMarker3d.hxx>

Inheritance diagram for Graphic3d_AspectMarker3d:
Inheritance graph
[legend]

Public Member Functions

 Graphic3d_AspectMarker3d ()
 Creates a context table for marker primitives
defined with the following default values:

Marker type : TOM_X
Colour : YELLOW
Scale factor : 1.0

 Graphic3d_AspectMarker3d (const Aspect_TypeOfMarker AType, const Quantity_Color &AColor, const Standard_Real AScaleOrId)
 Graphic3d_AspectMarker3d (const Aspect_TypeOfMarker AType, const Quantity_Color &AColor, const Standard_Real AScaleOrId, const Standard_Integer AWidth, const Standard_Integer AHeight, const Handle< TColStd_HArray1OfByte > &ATexture)
 Creates a context table for marker primitives
defined with the specified values.

void GetTextureSize (Standard_Integer &AWidth, Standard_Integer &AHeight)
 Returns marker's texture size.

const
Handle_TColStd_HArray1OfByte & 
GetTexture ()
 Returns marker's texture.

void SetTexture (const Standard_Integer AWidth, const Standard_Integer AHeight, const Handle< TColStd_HArray1OfByte > &ATexture)

Protected Attributes

Handle_TColStd_HArray1OfByte MyTexture
Standard_Integer MyTextureWidth
Standard_Integer MyTextureHeight

Constructor & Destructor Documentation

Graphic3d_AspectMarker3d::Graphic3d_AspectMarker3d ( )
Graphic3d_AspectMarker3d::Graphic3d_AspectMarker3d ( const Aspect_TypeOfMarker  AType,
const Quantity_Color AColor,
const Standard_Real  AScaleOrId 
)
Graphic3d_AspectMarker3d::Graphic3d_AspectMarker3d ( const Aspect_TypeOfMarker  AType,
const Quantity_Color AColor,
const Standard_Real  AScaleOrId,
const Standard_Integer  AWidth,
const Standard_Integer  AHeight,
const Handle< TColStd_HArray1OfByte > &  ATexture 
)

Member Function Documentation

const Handle_TColStd_HArray1OfByte& Graphic3d_AspectMarker3d::GetTexture ( )
void Graphic3d_AspectMarker3d::GetTextureSize ( Standard_Integer AWidth,
Standard_Integer AHeight 
)
void Graphic3d_AspectMarker3d::SetTexture ( const Standard_Integer  AWidth,
const Standard_Integer  AHeight,
const Handle< TColStd_HArray1OfByte > &  ATexture 
)

Field Documentation

Handle_TColStd_HArray1OfByte Graphic3d_AspectMarker3d::MyTexture [protected]

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines