OCC.Graphic3d module

class OCC.Graphic3d.Graphic3d_Array1OfVector(*args)

Bases: object

Assign()
Parameters:Other (Graphic3d_Array1OfVector &) –
Return type:Graphic3d_Array1OfVector
ChangeValue()
Parameters:Index (Standard_Integer) –
Return type:Graphic3d_Vector
Destroy()
Return type:None
Init()
Parameters:V (Graphic3d_Vector &) –
Return type:None
IsAllocated()
Return type:bool
Length()
Return type:int
Lower()
Return type:int
Set()
Parameters:Other (Graphic3d_Array1OfVector &) –
Return type:Graphic3d_Array1OfVector
SetValue()
Parameters:
  • Index (Standard_Integer) –
  • Value (Graphic3d_Vector &) –
Return type:

None

Upper()
Return type:int
Value()
Parameters:Index (Standard_Integer) –
Return type:Graphic3d_Vector
thisown

The membership flag

class OCC.Graphic3d.Graphic3d_Array1OfVertex(*args)

Bases: object

Assign()
Parameters:Other (Graphic3d_Array1OfVertex &) –
Return type:Graphic3d_Array1OfVertex
ChangeValue()
Parameters:Index (Standard_Integer) –
Return type:Graphic3d_Vertex
Destroy()
Return type:None
Init()
Parameters:V (Graphic3d_Vertex &) –
Return type:None
IsAllocated()
Return type:bool
Length()
Return type:int
Lower()
Return type:int
Set()
Parameters:Other (Graphic3d_Array1OfVertex &) –
Return type:Graphic3d_Array1OfVertex
SetValue()
Parameters:
  • Index (Standard_Integer) –
  • Value (Graphic3d_Vertex &) –
Return type:

None

Upper()
Return type:int
Value()
Parameters:Index (Standard_Integer) –
Return type:Graphic3d_Vertex
thisown

The membership flag

class OCC.Graphic3d.Graphic3d_Array2OfVertex(*args)

Bases: object

Assign()
Parameters:Other (Graphic3d_Array2OfVertex &) –
Return type:Graphic3d_Array2OfVertex
ChangeValue()
Parameters:
  • Row (Standard_Integer) –
  • Col (Standard_Integer) –
Return type:

Graphic3d_Vertex

ColLength()
Return type:int
Destroy()
Return type:None
Init()
Parameters:V (Graphic3d_Vertex &) –
Return type:None
LowerCol()
Return type:int
LowerRow()
Return type:int
RowLength()
Return type:int
Set()
Parameters:Other (Graphic3d_Array2OfVertex &) –
Return type:Graphic3d_Array2OfVertex
SetValue()
Parameters:
  • Row (Standard_Integer) –
  • Col (Standard_Integer) –
  • Value (Graphic3d_Vertex &) –
Return type:

None

UpperCol()
Return type:int
UpperRow()
Return type:int
Value()
Parameters:
  • Row (Standard_Integer) –
  • Col (Standard_Integer) –
Return type:

Graphic3d_Vertex

thisown

The membership flag

class OCC.Graphic3d.Graphic3d_ArrayOfPoints(*args)

Bases: OCC.Graphic3d.Graphic3d_ArrayOfPrimitives

GetHandle()

Graphic3d_ArrayOfPoints_GetHandle(Graphic3d_ArrayOfPoints self) -> Handle_Graphic3d_ArrayOfPoints

thisown

The membership flag

class OCC.Graphic3d.Graphic3d_ArrayOfPolygons(*args)

Bases: OCC.Graphic3d.Graphic3d_ArrayOfPrimitives

GetHandle()

Graphic3d_ArrayOfPolygons_GetHandle(Graphic3d_ArrayOfPolygons self) -> Handle_Graphic3d_ArrayOfPolygons

thisown

The membership flag

class OCC.Graphic3d.Graphic3d_ArrayOfPolylines(*args)

Bases: OCC.Graphic3d.Graphic3d_ArrayOfPrimitives

GetHandle()

Graphic3d_ArrayOfPolylines_GetHandle(Graphic3d_ArrayOfPolylines self) -> Handle_Graphic3d_ArrayOfPolylines

thisown

The membership flag

class OCC.Graphic3d.Graphic3d_ArrayOfPrimitives(*args, **kwargs)

Bases: OCC.MMgt.MMgt_TShared

AddBound()
  • Adds a bound of length <edgeNumber> in the bound array returns the actual bounds number.
Parameters:edgeNumber (Standard_Integer) –
Return type:int
  • Adds a bound of length <edgeNumber> and bound color <aBColor> in the bound array. returns the actual bounds number. Warning: <aBColor> is ignored when the <hasBColors> constructor parameter is False
Parameters:
  • edgeNumber (Standard_Integer) –
  • aBColor (Quantity_Color &) –
Return type:

int

  • Adds a bound of length <edgeNumber> and bound color coordinates in the bound array. returns the actual bounds number. Warning: <R,G,B> are ignored when the <hasBColors> constructor parameter is False
Parameters:
  • edgeNumber (Standard_Integer) –
  • R (float) –
  • G (float) –
  • B (float) –
Return type:

int

AddEdge()
  • Adds an edge in the range [1,VertexNumber()] in the array, if <isVisible> is False the edge between <vertexIndex> and the next edge will not be visible even if the SetEdgeOn() method is activated in Graphic3d_AspectFillArea3d class. returns the actual edges number. Warning: <isVisible> is ignored when the <hasEdgeInfos> constructor parameter is False.
Parameters:
  • vertexIndex (Standard_Integer) –
  • isVisible (bool) – default value is Standard_True
Return type:

int

  • Adds an edge in the range [1,VertexNumber()] in the array, if <isVisible> is False the edge between <vertexIndex> and the next edge will not be visible even if the SetEdgeOn() method is activated in Graphic3d_AspectFillArea3d class. returns the actual edges number. Warning: <isVisible> is ignored when the <hasEdgeInfos> constructor parameter is False.
Parameters:
  • vertexIndex (Standard_Integer) –
  • isVisible (bool) – default value is Standard_True
Return type:

int

AddVertex()
  • Adds a vertice in the array. returns the actual vertex number.
Parameters:aVertice (gp_Pnt) –
Return type:int
  • Adds a vertice in the array. returns the actual vertex number.
Parameters:
  • X (float) –
  • Y (float) –
  • Z (float) –
Return type:

int

  • Adds a vertice in the array. returns the actual vertex number.
Parameters:
  • X (Standard_ShortReal) –
  • Y (Standard_ShortReal) –
  • Z (Standard_ShortReal) –
Return type:

int

  • Adds a vertice and vertex color in the vertex array. returns the actual vertex number. Warning: <aColor> is ignored when the <hasVColors> constructor parameter is False
Parameters:
  • aVertice (gp_Pnt) –
  • aColor (Quantity_Color &) –
Return type:

int

  • Adds a vertice and vertex color in the vertex array. returns the actual vertex number. Warning: <aColor> is ignored when the <hasVColors> constructor parameter is False aColor = Alpha << 24 + Blue << 16 + Green << 8 + Red On all architecture proccers type (x86 or SPARC) you can use this byte order.
Parameters:
  • aVertice (gp_Pnt) –
  • aColor (Standard_Integer) –
Return type:

int

  • Adds a vertice and vertex normal in the vertex array. returns the actual vertex number. Warning: <aNormal> is ignored when the <hasVNormals> constructor parameter is False.
Parameters:
  • aVertice (gp_Pnt) –
  • aNormal (gp_Dir) –
Return type:

int

  • Adds a vertice and vertex normal in the vertex array. returns the actual vertex number. Warning: <aNormal> is ignored when the <hasVNormals> constructor parameter is False.
Parameters:
  • X (float) –
  • Y (float) –
  • Z (float) –
  • NX (float) –
  • NY (float) –
  • NZ (float) –
Return type:

int

  • Adds a vertice and vertex normal in the vertex array. returns the actual vertex number. Warning: <aNormal> is ignored when the <hasVNormals> constructor parameter is False.
Parameters:
  • X (Standard_ShortReal) –
  • Y (Standard_ShortReal) –
  • Z (Standard_ShortReal) –
  • NX (Standard_ShortReal) –
  • NY (Standard_ShortReal) –
  • NZ (Standard_ShortReal) –
Return type:

int

  • Adds a vertice,vertex normal and color in the vertex array. returns the actual vertex number. Warning: <aNormal> is ignored when the <hasVNormals> constructor parameter is False. <aColor> is ignored when the <hasVColors> constructor parameter is False
Parameters:
  • aVertice (gp_Pnt) –
  • aNormal (gp_Dir) –
  • aColor (Quantity_Color &) –
Return type:

int

  • Adds a vertice,vertex normal and color in the vertex array. returns the actual vertex number. Warning: <aNormal> is ignored when the <hasVNormals> constructor parameter is False. <aColor> is ignored when the <hasVColors> constructor parameter is False aColor = Alpha << 24 + Blue << 16 + Green << 8 + Red On all architecture proccers type (x86 or SPARC) you can use this byte order.
Parameters:
  • aVertice (gp_Pnt) –
  • aNormal (gp_Dir) –
  • aColor (Standard_Integer) –
Return type:

int

  • Adds a vertice and vertex texture in the vertex array. returns the actual vertex number. <aTexel> is ignored when the <hasVTexels> constructor parameter is False.
Parameters:
  • aVertice (gp_Pnt) –
  • aTexel (gp_Pnt2d) –
Return type:

int

  • Adds a vertice and vertex texture coordinates in the vertex array. returns the actual vertex number. <aTexel> is ignored when the <hasVTexels> constructor parameter is False.
Parameters:
  • X (float) –
  • Y (float) –
  • Z (float) –
  • TX (float) –
  • TY (float) –
Return type:

int

  • Adds a vertice and vertex texture coordinates in the vertex array. returns the actual vertex number. <aTexel> is ignored when the <hasVTexels> constructor parameter is False.
Parameters:
  • X (Standard_ShortReal) –
  • Y (Standard_ShortReal) –
  • Z (Standard_ShortReal) –
  • TX (Standard_ShortReal) –
  • TY (Standard_ShortReal) –
Return type:

int

  • Adds a vertice,vertex normal and texture in the vertex array. returns the actual vertex number. Warning: <aNormal> is ignored when the <hasVNormals> constructor parameter is False. <aTexel> is ignored when the <hasVTexels> constructor parameter is False.
Parameters:
  • aVertice (gp_Pnt) –
  • aNormal (gp_Dir) –
  • aTexel (gp_Pnt2d) –
Return type:

int

  • Adds a vertice,vertex normal and texture in the vertex array. returns the actual vertex number. Warning: <aNormal> is ignored when the <hasVNormals> constructor parameter is False. <aTexel> is ignored when the <hasVTexels> constructor parameter is False.
Parameters:
  • X (float) –
  • Y (float) –
  • Z (float) –
  • NX (float) –
  • NY (float) –
  • NZ (float) –
  • TX (float) –
  • TY (float) –
Return type:

int

  • Adds a vertice,vertex normal and texture in the vertex array. returns the actual vertex number. Warning: <aNormal> is ignored when the <hasVNormals> constructor parameter is False. <aTexel> is ignored when the <hasVTexels> constructor parameter is False.
Parameters:
  • X (Standard_ShortReal) –
  • Y (Standard_ShortReal) –
  • Z (Standard_ShortReal) –
  • NX (Standard_ShortReal) –
  • NY (Standard_ShortReal) –
  • NZ (Standard_ShortReal) –
  • TX (Standard_ShortReal) –
  • TY (Standard_ShortReal) –
Return type:

int

Array()
  • Returns the array address.
Return type:Graphic3d_PrimitiveArray
Bound()
  • Returns the edge number at rank <aRank>.
Parameters:aRank (Standard_Integer) –
Return type:int
BoundColor()
  • Returns the bound color at rank <aRank> from the bound table if defined.
Parameters:aRank (Standard_Integer) –
Return type:Quantity_Color
  • Returns the bound color values at rank <aRank> from the bound table if defined.
Parameters:
  • aRank (Standard_Integer) –
  • R (float &) –
  • G (float &) –
  • B (float &) –
Return type:

None

BoundNumber()
  • Returns the number of defined bounds
Return type:int
Destroy()
Return type:None
Edge()
  • Returns the vertex index at rank <aRank> in the range [1,VertexNumber()]
Parameters:aRank (Standard_Integer) –
Return type:int
EdgeIsVisible()
  • Returns True when the edge at rank <aRank> is visible.
Parameters:aRank (Standard_Integer) –
Return type:bool
EdgeNumber()
  • Returns the number of defined edges
Return type:int
GetHandle()

Graphic3d_ArrayOfPrimitives_GetHandle(Graphic3d_ArrayOfPrimitives self) -> Handle_Graphic3d_ArrayOfPrimitives

HasBoundColors()
  • Returns True when bound colors array is defined.
Return type:bool
HasEdgeInfos()
  • Returns True when edge visibillity array is defined.
Return type:bool
HasVertexColors()
  • Returns True when vertex colors array is defined.
Return type:bool
HasVertexNormals()
  • Returns True when vertex normals array is defined.
Return type:bool
HasVertexTexels()
  • Returns True when vertex texels array is defined.
Return type:bool
IsValid()
  • Returns True only when the contains of this array is available.
Return type:bool
ItemNumber()
  • Returns the number of total items according to the array type.
Return type:int
Orientate()
  • Orientate correctly all vertexs & normals of this array according to the <aNormal> parameter and returns True when something has change in the array. Warning: When the array has edges this method is apply on edge sub array instead on vertex sub array.
Parameters:aNormal (gp_Dir) –
Return type:bool
  • Orientate correctly all vertexs & normal of the bound <aBound> according to the <aNormal> parameter and returns True when something has change in the array. Warning: When the array has edges this method is apply on edge sub array instead on vertex sub array. When this array has no bound, <aBoundIndex> design the item number
Parameters:
  • aBoundIndex (Standard_Integer) –
  • aNormal (gp_Dir) –
Return type:

bool

SetBoundColor()
  • Change the bound color of rank <anIndex> in the array.
Parameters:
  • anIndex (Standard_Integer) –
  • aColor (Quantity_Color &) –
Return type:

None

  • Change the bound color of rank <anIndex> in the array.
Parameters:
  • anIndex (Standard_Integer) –
  • R (float) –
  • G (float) –
  • B (float) –
Return type:

None

SetVertexColor()
  • Change the vertex color of rank <anIndex> in the array.
Parameters:
  • anIndex (Standard_Integer) –
  • aColor (Quantity_Color &) –
Return type:

None

  • Change the vertex color of rank <anIndex> in the array.
Parameters:
  • anIndex (Standard_Integer) –
  • R (float) –
  • G (float) –
  • B (float) –
Return type:

None

  • Change the vertex color of rank <anIndex> in the array. aColor = Alpha << 24 + Blue << 16 + Green << 8 + Red On all architecture proccers type (x86 or SPARC) you can use this byte order.
Parameters:
  • anIndex (Standard_Integer) –
  • aColor (Standard_Integer) –
Return type:

None

SetVertexNormal()
  • Change the vertex normal of rank <anIndex> in the array.
Parameters:
  • anIndex (Standard_Integer) –
  • aNormal (gp_Dir) –
Return type:

None

  • Change the vertex normal of rank <anIndex> in the array.
Parameters:
  • anIndex (Standard_Integer) –
  • NX (float) –
  • NY (float) –
  • NZ (float) –
Return type:

None

SetVertexTexel()
  • Change the vertex texel of rank <anIndex> in the array.
Parameters:
  • anIndex (Standard_Integer) –
  • aTexel (gp_Pnt2d) –
Return type:

None

  • Change the vertex texel of rank <anIndex> in the array.
Parameters:
  • anIndex (Standard_Integer) –
  • TX (float) –
  • TY (float) –
Return type:

None

SetVertice()
  • Change the vertice of rank <anIndex> in the array.
Parameters:
  • anIndex (Standard_Integer) –
  • aVertice (gp_Pnt) –
Return type:

None

  • Change the vertice of rank <anIndex> in the array.
Parameters:
  • anIndex (Standard_Integer) –
  • X (Standard_ShortReal) –
  • Y (Standard_ShortReal) –
  • Z (Standard_ShortReal) –
Return type:

None

StringType()
  • Returns the string type of this primitive
Return type:char *
Type()
  • Returns the type of this primitive
Return type:Graphic3d_TypeOfPrimitiveArray
VertexColor()
  • Returns the vertex color at rank <aRank> from the vertex table if defined.
Parameters:aRank (Standard_Integer) –
Return type:Quantity_Color
  • Returns the vertex color values at rank <aRank> from the vertex table if defined.
Parameters:
  • aRank (Standard_Integer) –
  • R (float &) –
  • G (float &) –
  • B (float &) –
Return type:

None

  • Returns the vertex color values at rank <aRank> from the vertex table if defined.
Parameters:
  • aRank (Standard_Integer) –
  • aColor (Standard_Integer &) –
Return type:

None

VertexNormal()
  • Returns the vertex normal at rank <aRank> from the vertex table if defined.
Parameters:aRank (Standard_Integer) –
Return type:gp_Dir
  • Returns the vertex normal coordinates at rank <aRank> from the vertex table if defined.
Parameters:
  • aRank (Standard_Integer) –
  • NX (float &) –
  • NY (float &) –
  • NZ (float &) –
Return type:

None

VertexNumber()
  • Returns the number of defined vertex
Return type:int
VertexTexel()
  • Returns the vertex texture at rank <aRank> from the vertex table if defined.
Parameters:aRank (Standard_Integer) –
Return type:gp_Pnt2d
  • Returns the vertex texture coordinates at rank <aRank> from the vertex table if defined.
Parameters:
  • aRank (Standard_Integer) –
  • TX (float &) –
  • TY (float &) –
Return type:

None

Vertice()
  • Returns the vertice at rank <aRank> from the vertex table if defined.
Parameters:aRank (Standard_Integer) –
Return type:gp_Pnt
  • Returns the vertice coordinates at rank <aRank> from the vertex table if defined.
Parameters:
  • aRank (Standard_Integer) –
  • X (float &) –
  • Y (float &) –
  • Z (float &) –
Return type:

None

thisown

The membership flag

class OCC.Graphic3d.Graphic3d_ArrayOfQuadrangleStrips(*args)

Bases: OCC.Graphic3d.Graphic3d_ArrayOfPrimitives

GetHandle()

Graphic3d_ArrayOfQuadrangleStrips_GetHandle(Graphic3d_ArrayOfQuadrangleStrips self) -> Handle_Graphic3d_ArrayOfQuadrangleStrips

thisown

The membership flag

class OCC.Graphic3d.Graphic3d_ArrayOfQuadrangles(*args)

Bases: OCC.Graphic3d.Graphic3d_ArrayOfPrimitives

GetHandle()

Graphic3d_ArrayOfQuadrangles_GetHandle(Graphic3d_ArrayOfQuadrangles self) -> Handle_Graphic3d_ArrayOfQuadrangles

thisown

The membership flag

class OCC.Graphic3d.Graphic3d_ArrayOfSegments(*args)

Bases: OCC.Graphic3d.Graphic3d_ArrayOfPrimitives

GetHandle()

Graphic3d_ArrayOfSegments_GetHandle(Graphic3d_ArrayOfSegments self) -> Handle_Graphic3d_ArrayOfSegments

thisown

The membership flag

class OCC.Graphic3d.Graphic3d_ArrayOfTriangleFans(*args)

Bases: OCC.Graphic3d.Graphic3d_ArrayOfPrimitives

GetHandle()

Graphic3d_ArrayOfTriangleFans_GetHandle(Graphic3d_ArrayOfTriangleFans self) -> Handle_Graphic3d_ArrayOfTriangleFans

thisown

The membership flag

class OCC.Graphic3d.Graphic3d_ArrayOfTriangleStrips(*args)

Bases: OCC.Graphic3d.Graphic3d_ArrayOfPrimitives

GetHandle()

Graphic3d_ArrayOfTriangleStrips_GetHandle(Graphic3d_ArrayOfTriangleStrips self) -> Handle_Graphic3d_ArrayOfTriangleStrips

thisown

The membership flag

class OCC.Graphic3d.Graphic3d_ArrayOfTriangles(*args)

Bases: OCC.Graphic3d.Graphic3d_ArrayOfPrimitives

GetHandle()

Graphic3d_ArrayOfTriangles_GetHandle(Graphic3d_ArrayOfTriangles self) -> Handle_Graphic3d_ArrayOfTriangles

thisown

The membership flag

class OCC.Graphic3d.Graphic3d_AspectFillArea3d(*args)

Bases: OCC.Aspect.Aspect_AspectFillArea

AllowBackFace()
  • Allows the display of back-facing filled polygons.
Return type:None
BackFace()
  • Returns the Back Face Removal status. Standard_True if SuppressBackFace is activated.
Return type:bool
BackMaterial()
  • Returns the surface material of internal faces
Return type:Graphic3d_MaterialAspect
Distinguish()
  • Returns the Distinguish Mode status.
Return type:bool
Edge()
  • Returns Standard_True if the edges are drawn and Standard_False if the edges are not drawn.
Return type:bool
FrontMaterial()
  • Returns the surface material of external faces
Return type:Graphic3d_MaterialAspect
GetHandle()

Graphic3d_AspectFillArea3d_GetHandle(Graphic3d_AspectFillArea3d self) -> Handle_Graphic3d_AspectFillArea3d

PolygonOffsets()
  • Returns current polygon offsets settings.
Parameters:
  • aMode (Standard_Integer &) –
  • aFactor (Standard_ShortReal &) –
  • aUnits (Standard_ShortReal &) –
Return type:

None

SetBackMaterial()
  • Modifies the surface material of internal faces
Parameters:AMaterial (Graphic3d_MaterialAspect &) –
Return type:None
SetDistinguishOff()
  • Forbids distinction between external and internal faces of FillAreas.
Return type:None
SetDistinguishOn()
  • Allows distinction between external and internal faces of FillAreas.
Return type:None
SetEdgeOff()
  • The edges of FillAreas are not drawn.
Return type:None
SetEdgeOn()
  • The edges of FillAreas are drawn.
Return type:None
SetFrontMaterial()
  • Modifies the surface material of external faces
Parameters:AMaterial (Graphic3d_MaterialAspect &) –
Return type:None
SetPolygonOffsets()
  • 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) Deafult 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).
Parameters:
  • aMode (Standard_Integer) –
  • aFactor (Standard_ShortReal) – default value is 1.0
  • aUnits (Standard_ShortReal) – default value is 0.0
Return type:

None

  • 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) Deafult 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).
Parameters:
  • aMode (Standard_Integer) –
  • aFactor (Standard_ShortReal) – default value is 1.0
  • aUnits (Standard_ShortReal) – default value is 0.0
Return type:

None

  • 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) Deafult 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).
Parameters:
  • aMode (Standard_Integer) –
  • aFactor (Standard_ShortReal) – default value is 1.0
  • aUnits (Standard_ShortReal) – default value is 0.0
Return type:

None

SetShaderProgram()
  • Sets up OpenGL/GLSL shader program.
Parameters:theProgram (Graphic3d_ShaderProgram_Handle &) –
Return type:None
SetTextureMap()
Parameters:ATexture (Handle_Graphic3d_TextureMap &) –
Return type:None
SetTextureMapOff()
Return type:None
SetTextureMapOn()
Return type:None
ShaderProgram()
Return type:Graphic3d_ShaderProgram_Handle
SuppressBackFace()
  • Suppress the display of back-facing filled polygons. A back-facing polygon is defined as a polygon whose vertices are in a clockwise order with respect to screen coordinates.
Return type:None
TextureMap()
Return type:Handle_Graphic3d_TextureMap
TextureMapState()
Return type:bool
thisown

The membership flag

class OCC.Graphic3d.Graphic3d_AspectLine3d(*args)

Bases: OCC.Aspect.Aspect_AspectLine

GetHandle()

Graphic3d_AspectLine3d_GetHandle(Graphic3d_AspectLine3d self) -> Handle_Graphic3d_AspectLine3d

SetShaderProgram()
  • Sets up OpenGL/GLSL shader program.
Parameters:theProgram (Graphic3d_ShaderProgram_Handle &) –
Return type:None
ShaderProgram()
Return type:Graphic3d_ShaderProgram_Handle
thisown

The membership flag

class OCC.Graphic3d.Graphic3d_AspectMarker3d(*args)

Bases: OCC.Aspect.Aspect_AspectMarker

GetHandle()

Graphic3d_AspectMarker3d_GetHandle(Graphic3d_AspectMarker3d self) -> Handle_Graphic3d_AspectMarker3d

GetMarkerImage()
  • Returns marker’s image texture. Could be null handle if marker aspect has been initialized as default type of marker.
Return type:Graphic3d_MarkerImage_Handle
GetTextureSize()
  • Returns marker’s texture size.
Parameters:
  • theWidth (Standard_Integer &) –
  • theHeight (Standard_Integer &) –
Return type:

None

SetBitMap()
Parameters:
  • theWidth (Standard_Integer) –
  • theHeight (Standard_Integer) –
  • theTexture (Handle_TColStd_HArray1OfByte &) –
Return type:

None

SetShaderProgram()
  • Sets up OpenGL/GLSL shader program.
Parameters:theProgram (Graphic3d_ShaderProgram_Handle &) –
Return type:None
ShaderProgram()
Return type:Graphic3d_ShaderProgram_Handle
thisown

The membership flag

class OCC.Graphic3d.Graphic3d_AspectText3d(*args)

Bases: OCC.MMgt.MMgt_TShared

GetHandle()

Graphic3d_AspectText3d_GetHandle(Graphic3d_AspectText3d self) -> Handle_Graphic3d_AspectText3d

GetTextAngle()
  • Returns Angle of degree
Return type:float
GetTextFontAspect()
  • Returns text FontAspect
Return type:Font_FontAspect
GetTextZoomable()
  • Returns True when the Text Zoomable is on.
Return type:bool
SetColor()
  • Modifies the colour of <self>.
Parameters:AColor (Quantity_Color &) –
Return type:None
SetColorSubTitle()
  • Modifies the colour of the subtitle for the TODT_SUBTITLE TextDisplayType and the colour of backgroubd for the TODT_DEKALE TextDisplayType.
Parameters:AColor (Quantity_Color &) –
Return type:None
SetDisplayType()
  • Define the display type of the text. TODT_NORMAL Default display. Text only. TODT_SUBTITLE There is a subtitle under the text. TODT_DEKALE The text is displayed with a 3D style. TODT_BLEND The text is displayed in XOR. TODT_DIMENSION Dimension line under text will be invisible.
Parameters:ADisplayType (Aspect_TypeOfDisplayText) –
Return type:None
SetExpansionFactor()
  • Modifies the expansion factor (height/width ratio) If the factor is less than 1, the characters will be higher than they are wide.
Parameters:AFactor (float) –
Return type:None
SetFont()
  • Modifies the font of <self>.
Parameters:AFont (char *) –
Return type:None
SetShaderProgram()
  • Sets up OpenGL/GLSL shader program.
Parameters:theProgram (Graphic3d_ShaderProgram_Handle &) –
Return type:None
SetSpace()
  • Modifies the space between the characters.
Parameters:ASpace (float) –
Return type:None
SetStyle()
  • Modifies the style of the text. TOST_NORMAL Default text. The text is displayed like any other graphic object. This text can be hidden by another object that is nearest from the point of view. TOST_ANNOTATION The text is always visible. The texte is displayed over the other object according to the priority.
Parameters:AStyle (Aspect_TypeOfStyleText) –
Return type:None
SetTextAngle()
  • Turns usage of text rotated
Parameters:AAngle (float) –
Return type:None
SetTextFontAspect()
  • Turns usage of Aspect text
Parameters:AFontAspect (Font_FontAspect) –
Return type:None
SetTextZoomable()
  • Turns usage of text zoomable on/off
Parameters:AFlag (bool) –
Return type:None
ShaderProgram()
Return type:Graphic3d_ShaderProgram_Handle
thisown

The membership flag

class OCC.Graphic3d.Graphic3d_CBitFields16(*args, **kwargs)

Bases: object

thisown

The membership flag

class OCC.Graphic3d.Graphic3d_CBitFields20(*args, **kwargs)

Bases: object

thisown

The membership flag

class OCC.Graphic3d.Graphic3d_CBitFields4(*args, **kwargs)

Bases: object

thisown

The membership flag

class OCC.Graphic3d.Graphic3d_CBitFields8(*args, **kwargs)

Bases: object

thisown

The membership flag

class OCC.Graphic3d.Graphic3d_CGraduatedTrihedron

Bases: object

thisown

The membership flag

class OCC.Graphic3d.Graphic3d_CGroup(*args, **kwargs)

Bases: object

thisown

The membership flag

class OCC.Graphic3d.Graphic3d_CLight

Bases: object

Angle()
  • Angle in radians of the cone created by the spot
Return type:Standard_ShortReal
Attenuation()
  • Const, Linear attenuation factors of positional light source
Return type:Graphic3d_Vec2
ChangeAngle()
Return type:Standard_ShortReal
ChangeAttenuation()
Return type:Graphic3d_Vec2
ChangeConcentration()
Return type:Standard_ShortReal
ChangeConstAttenuation()
Return type:Standard_ShortReal
ChangeLinearAttenuation()
Return type:Standard_ShortReal
Concentration()
  • Intensity distribution of the spot light, with 0..1 range.
Return type:Standard_ShortReal
ConstAttenuation()
  • //!< flag to mark head light Const attenuation factor of positional light source
Return type:Standard_ShortReal
LinearAttenuation()
  • Linear attenuation factor of positional light source
Return type:Standard_ShortReal
thisown

The membership flag

class OCC.Graphic3d.Graphic3d_CStructure(*args, **kwargs)

Bases: object

thisown

The membership flag

class OCC.Graphic3d.Graphic3d_CTexture

Bases: object

thisown

The membership flag

class OCC.Graphic3d.Graphic3d_CView

Bases: object

thisown

The membership flag

class OCC.Graphic3d.Graphic3d_DataStructureManager(*args, **kwargs)

Bases: OCC.MMgt.MMgt_TShared

Destroy()
  • Deletes the manager <self>.
Return type:void
GetHandle()

Graphic3d_DataStructureManager_GetHandle(Graphic3d_DataStructureManager self) -> Handle_Graphic3d_DataStructureManager

thisown

The membership flag

class OCC.Graphic3d.Graphic3d_GraphicDriver(*args, **kwargs)

Bases: OCC.MMgt.MMgt_TShared

ActivateView()
  • call_togl_activateview
Parameters:ACView (Graphic3d_CView &) –
Return type:void
AddZLayer()
  • Add a new top-level z layer with ID <theLayerId> for the view. Z layers allow drawing structures in higher layers in foreground of structures in lower layers. To add a structure to desired layer on display it is necessary to set the layer ID for the structure.
Parameters:
  • theCView (Graphic3d_CView &) –
  • theLayerId (Standard_Integer) –
Return type:

void

AntiAliasing()
  • call_togl_antialiasing
Parameters:
  • ACView (Graphic3d_CView &) –
  • AFlag (bool) –
Return type:

void

Background()
  • call_togl_background
Parameters:ACView (Graphic3d_CView &) –
Return type:void
BackgroundImage()
Parameters:
  • FileName (char *) –
  • ACView (Graphic3d_CView &) –
  • FillStyle (Aspect_FillMethod) –
Return type:

void

Begin()
  • Starts graphic driver with given connection
Parameters:theDisplayConnection (Aspect_DisplayConnection_Handle &) –
Return type:bool
BeginAddMode()
  • call_togl_begin_ajout_mode
Parameters:ACView (Graphic3d_CView &) –
Return type:bool
BeginImmediatMode()
  • call_togl_begin_immediat_mode
Parameters:
  • ACView (Graphic3d_CView &) –
  • ACUnderLayer (Aspect_CLayer2d &) –
  • ACOverLayer (Aspect_CLayer2d &) –
  • DoubleBuffer (bool) –
  • RetainMode (bool) –
Return type:

bool

BeginLayer()
  • call_togl_begin_layer2d
Parameters:ACLayer (Aspect_CLayer2d &) –
Return type:void
BeginPolygon2d()
  • call_togl_begin_polygon2d
Return type:void
BeginPolyline2d()
  • call_togl_begin_polyline2d
Return type:void
  • call_togl_blink
Parameters:
  • ACStructure (Graphic3d_CStructure &) –
  • Create (bool) –
Return type:

void

BoundaryBox()
  • call_togl_boundarybox
Parameters:
  • ACStructure (Graphic3d_CStructure &) –
  • Create (bool) –
Return type:

void

BufferDump()
  • Dump active rendering buffer into specified memory buffer.
Parameters:
  • theCView (Graphic3d_CView &) –
  • theImage (Image_PixMap &) –
  • theBufferType (Graphic3d_BufferType &) –
Return type:

bool

ChangeZLayer()
  • Change Z layer of a structure. The new z layer ID will be used to define the associated layer for structure on display.
Parameters:
  • theCStructure (Graphic3d_CStructure &) –
  • theLayerId (Standard_Integer) –
Return type:

void

  • Change Z layer of a structure already presented in view.
Parameters:
  • theCStructure (Graphic3d_CStructure &) –
  • theCView (Graphic3d_CView &) –
  • theNewLayerId (Standard_Integer) –
Return type:

void

ClearGroup()
  • call_togl_cleargroup
Parameters:ACGroup (Graphic3d_CGroup &) –
Return type:void
ClearImmediatMode()
  • call_togl_clear_immediat_mode
Parameters:
  • ACView (Graphic3d_CView &) –
  • aFlush (bool) – default value is Standard_True
Return type:

void

  • call_togl_clear_immediat_mode
Parameters:
  • ACView (Graphic3d_CView &) –
  • aFlush (bool) – default value is Standard_True
Return type:

void

ClearLayer()
  • call_togl_clear_layer2d
Parameters:ACLayer (Aspect_CLayer2d &) –
Return type:void
ClearStructure()
  • call_togl_clearstructure
Parameters:ACStructure (Graphic3d_CStructure &) –
Return type:void
ClipLimit()
  • call_togl_cliplimit
Parameters:
  • ACView (Graphic3d_CView &) –
  • AWait (bool) –
Return type:

void

Connect()
  • call_togl_connect
Parameters:
  • AFather (Graphic3d_CStructure &) –
  • ASon (Graphic3d_CStructure &) –
Return type:

void

ContextStructure()
  • call_togl_contextstructure
Parameters:ACStructure (Graphic3d_CStructure &) –
Return type:void
DeactivateView()
  • call_togl_deactivateview
Parameters:ACView (Graphic3d_CView &) –
Return type:void
DefaultTextHeight()
Return type:Standard_ShortReal
DepthCueing()
  • call_togl_cliplimit
Parameters:
  • ACView (Graphic3d_CView &) –
  • AFlag (bool) –
Return type:

void

Disconnect()
  • call_togl_disconnect
Parameters:
  • AFather (Graphic3d_CStructure &) –
  • ASon (Graphic3d_CStructure &) –
Return type:

void

DisplayStructure()
  • call_togl_displaystructure
Parameters:
  • ACView (Graphic3d_CView &) –
  • ACStructure (Graphic3d_CStructure &) –
  • APriority (Standard_Integer) –
Return type:

void

Draw()
  • call_togl_draw2d
Parameters:
  • X (Standard_ShortReal) –
  • Y (Standard_ShortReal) –
Return type:

void

DrawStructure()
  • call_togl_draw_structure
Parameters:ACStructure (Graphic3d_CStructure &) –
Return type:void
Edge()
  • call_togl_edge2d
Parameters:
  • X (Standard_ShortReal) –
  • Y (Standard_ShortReal) –
Return type:

void

EnableVBO()
  • enables/disables usage of OpenGL vertex buffer arrays while drawing primitiev arrays
Parameters:status (bool) –
Return type:void
End()
  • call_togl_end
Return type:void
EndAddMode()
  • call_togl_end_ajout_mode
Return type:void
EndImmediatMode()
  • call_togl_end_immediat_mode
Parameters:Synchronize (Standard_Integer) –
Return type:void
EndLayer()
  • call_togl_end_layer2d
Return type:void
EndPolygon2d()
  • call_togl_end_polygon2d
Return type:void
EndPolyline2d()
  • call_togl_end_polyline2d
Return type:void
Environment()
Parameters:ACView (Graphic3d_CView &) –
Return type:void
EraseStructure()
  • call_togl_erasestructure
Parameters:
  • ACView (Graphic3d_CView &) –
  • ACStructure (Graphic3d_CStructure &) –
Return type:

void

Export()
  • Export scene into the one of the Vector graphics formats (SVG, PS, PDF...). In contrast to Bitmaps, Vector graphics is scalable (so you may got quality benefits on printing to laser printer). Notice however that results may differ a lot and do not contain some elements.
Parameters:
  • theFileName (char *) –
  • theFormat (Graphic3d_ExportFormat) –
  • theSortType (Graphic3d_SortType) –
  • theWidth (Standard_Integer) –
  • theHeight (Standard_Integer) –
  • theView (Graphic3d_CView &) –
  • theLayerUnder (Aspect_CLayer2d &) –
  • theLayerOver (Aspect_CLayer2d &) –
  • thePrecision (float) – default value is 0.005
  • theProgressBarFunc (Standard_Address) – default value is NULL
  • theProgressObject (Standard_Address) – default value is NULL
Return type:

bool

  • Export scene into the one of the Vector graphics formats (SVG, PS, PDF...). In contrast to Bitmaps, Vector graphics is scalable (so you may got quality benefits on printing to laser printer). Notice however that results may differ a lot and do not contain some elements.
Parameters:
  • theFileName (char *) –
  • theFormat (Graphic3d_ExportFormat) –
  • theSortType (Graphic3d_SortType) –
  • theWidth (Standard_Integer) –
  • theHeight (Standard_Integer) –
  • theView (Graphic3d_CView &) –
  • theLayerUnder (Aspect_CLayer2d &) –
  • theLayerOver (Aspect_CLayer2d &) –
  • thePrecision (float) – default value is 0.005
  • theProgressBarFunc (Standard_Address) – default value is NULL
  • theProgressObject (Standard_Address) – default value is NULL
Return type:

bool

  • Export scene into the one of the Vector graphics formats (SVG, PS, PDF...). In contrast to Bitmaps, Vector graphics is scalable (so you may got quality benefits on printing to laser printer). Notice however that results may differ a lot and do not contain some elements.
Parameters:
  • theFileName (char *) –
  • theFormat (Graphic3d_ExportFormat) –
  • theSortType (Graphic3d_SortType) –
  • theWidth (Standard_Integer) –
  • theHeight (Standard_Integer) –
  • theView (Graphic3d_CView &) –
  • theLayerUnder (Aspect_CLayer2d &) –
  • theLayerOver (Aspect_CLayer2d &) –
  • thePrecision (float) – default value is 0.005
  • theProgressBarFunc (Standard_Address) – default value is NULL
  • theProgressObject (Standard_Address) – default value is NULL
Return type:

bool

  • Export scene into the one of the Vector graphics formats (SVG, PS, PDF...). In contrast to Bitmaps, Vector graphics is scalable (so you may got quality benefits on printing to laser printer). Notice however that results may differ a lot and do not contain some elements.
Parameters:
  • theFileName (char *) –
  • theFormat (Graphic3d_ExportFormat) –
  • theSortType (Graphic3d_SortType) –
  • theWidth (Standard_Integer) –
  • theHeight (Standard_Integer) –
  • theView (Graphic3d_CView &) –
  • theLayerUnder (Aspect_CLayer2d &) –
  • theLayerOver (Aspect_CLayer2d &) –
  • thePrecision (float) – default value is 0.005
  • theProgressBarFunc (Standard_Address) – default value is NULL
  • theProgressObject (Standard_Address) – default value is NULL
Return type:

bool

FBOChangeViewport()
  • Change offscreen FBO viewport.
Parameters:
  • view (Graphic3d_CView &) –
  • fboPtr (Graphic3d_PtrFrameBuffer &) –
  • width (Standard_Integer) –
  • height (Standard_Integer) –
Return type:

void

FBOCreate()
  • Generate offscreen FBO in the graphic library. If not supported on hardware returns NULL.
Parameters:
  • view (Graphic3d_CView &) –
  • width (Standard_Integer) –
  • height (Standard_Integer) –
Return type:

Graphic3d_PtrFrameBuffer

FBOGetDimensions()
  • Read offscreen FBO configuration.
Parameters:
  • view (Graphic3d_CView &) –
  • fboPtr (Graphic3d_PtrFrameBuffer) –
  • width (Standard_Integer &) –
  • height (Standard_Integer &) –
  • widthMax (Standard_Integer &) –
  • heightMax (Standard_Integer &) –
Return type:

void

FBORelease()
  • Remove offscreen FBO from the graphic library
Parameters:
  • view (Graphic3d_CView &) –
  • fboPtr (Graphic3d_PtrFrameBuffer &) –
Return type:

void

FaceContextGroup()
  • call_togl_facecontextgroup
Parameters:
  • ACGroup (Graphic3d_CGroup &) –
  • NoInsert (Standard_Integer) –
Return type:

void

GetDisplayConnection()
  • returns Handle to display connection
Return type:Aspect_DisplayConnection_Handle
GetHandle()

Graphic3d_GraphicDriver_GetHandle(Graphic3d_GraphicDriver self) -> Handle_Graphic3d_GraphicDriver

GetZLayer()
  • Get Z layer ID of structure. If the structure doesn’t exists in graphic driver, the method returns -1.
Parameters:theCStructure (Graphic3d_CStructure &) –
Return type:int
GradientBackground()
  • call_togl_gradient_background
Parameters:
  • ACView (Graphic3d_CView &) –
  • AColor1 (Quantity_Color &) –
  • AColor2 (Quantity_Color &) –
  • FillStyle (Aspect_GradientFillMethod) –
Return type:

void

GraduatedTrihedronDisplay()
  • call_togl_graduatedtrihedron_display
Parameters:
  • view (Graphic3d_CView &) –
  • cubic (Graphic3d_CGraduatedTrihedron &) –
Return type:

void

GraduatedTrihedronErase()
  • call_togl_graduatedtrihedron_erase
Parameters:view (Graphic3d_CView &) –
Return type:void
GraduatedTrihedronMinMaxValues()
  • call_togl_graduatedtrihedron_minmaxvalues
Parameters:
  • xmin (Standard_ShortReal) –
  • ymin (Standard_ShortReal) –
  • zmin (Standard_ShortReal) –
  • xmax (Standard_ShortReal) –
  • ymax (Standard_ShortReal) –
  • zmax (Standard_ShortReal) –
Return type:

void

Group()
  • call_togl_group
Parameters:ACGroup (Graphic3d_CGroup &) –
Return type:void
HighlightColor()
  • call_togl_highlightcolor
Parameters:
  • ACStructure (Graphic3d_CStructure &) –
  • R (Standard_ShortReal) –
  • G (Standard_ShortReal) –
  • B (Standard_ShortReal) –
  • Create (bool) –
Return type:

void

InquireLightLimit()
  • call_togl_inquirelight
Return type:int
InquireMat()
  • call_togl_inquiremat
Parameters:
  • ACView (Graphic3d_CView &) –
  • AMatO (TColStd_Array2OfReal &) –
  • AMatM (TColStd_Array2OfReal &) –
Return type:

void

InquirePlaneLimit()
  • call_togl_inquireplane
Return type:int
InquireViewLimit()
  • call_togl_inquireview
Return type:int
IsDepthTestEnabled()
  • call_togl_isdepthtest
Parameters:view (Graphic3d_CView &) –
Return type:bool
IsDeviceLost()
Return type:bool
IsGLLightEnabled()
  • call_togl_isgllight
Parameters:view (Graphic3d_CView &) –
Return type:bool
Layer()
  • call_togl_layer2d
Parameters:ACLayer (Aspect_CLayer2d &) –
Return type:void
LineContextGroup()
  • call_togl_linecontextgroup
Parameters:
  • ACGroup (Graphic3d_CGroup &) –
  • NoInsert (Standard_Integer) –
Return type:

void

MarkerContextGroup()
  • call_togl_markercontextgroup
Parameters:
  • ACGroup (Graphic3d_CGroup &) –
  • NoInsert (Standard_Integer) –
Return type:

void

MemoryInfo()
  • Returns information about GPU memory usage.
Parameters:
  • theFreeBytes (Standard_Size &) –
  • theInfo (TCollection_AsciiString &) –
Return type:

bool

Move()
  • call_togl_move2d
Parameters:
  • X (Standard_ShortReal) –
  • Y (Standard_ShortReal) –
Return type:

void

NameSetStructure()
  • call_togl_namesetstructure
Parameters:ACStructure (Graphic3d_CStructure &) –
Return type:void
PrimitiveArray()
  • call_togl_parray
Parameters:
  • ACGroup (Graphic3d_CGroup &) –
  • parray (Graphic3d_PrimitiveArray &) –
  • EvalMinMax (bool) – default value is Standard_True
Return type:

void

  • call_togl_parray
Parameters:
  • ACGroup (Graphic3d_CGroup &) –
  • parray (Graphic3d_PrimitiveArray &) –
  • EvalMinMax (bool) – default value is Standard_True
Return type:

void

PrintBoolean()
Parameters:
  • AComment (char *) –
  • AValue (bool) –
Return type:

None

PrintCGroup()
Parameters:
  • ACGroup (Graphic3d_CGroup &) –
  • AField (Standard_Integer) –
Return type:

None

PrintCLight()
Parameters:
  • ACLight (Graphic3d_CLight &) –
  • AField (Standard_Integer) –
Return type:

None

PrintCPick()
Parameters:
  • ACPick (Graphic3d_CPick &) –
  • AField (Standard_Integer) –
Return type:

None

PrintCStructure()
Parameters:
  • ACStructure (Graphic3d_CStructure &) –
  • AField (Standard_Integer) –
Return type:

None

PrintCView()
Parameters:
  • ACView (Graphic3d_CView &) –
  • AField (Standard_Integer) –
Return type:

None

PrintFunction()
Parameters:AFunc (char *) –
Return type:None
PrintIResult()
Parameters:
  • AFunc (char *) –
  • AResult (Standard_Integer) –
Return type:

None

PrintInteger()
Parameters:
  • AComment (char *) –
  • AValue (Standard_Integer) –
Return type:

None

PrintMatrix()
Parameters:
  • AComment (char *) –
  • AMatrix (TColStd_Array2OfReal &) –
Return type:

None

PrintShortReal()
Parameters:
  • AComment (char *) –
  • AValue (Standard_ShortReal) –
Return type:

None

PrintString()
Parameters:
  • AComment (char *) –
  • AString (char *) –
Return type:

None

ProjectRaster()
  • call_togl_unproject_raster
Parameters:
  • ACView (Graphic3d_CView &) –
  • AX (Standard_ShortReal) –
  • AY (Standard_ShortReal) –
  • AZ (Standard_ShortReal) –
  • AU (Standard_Integer &) –
  • AV (Standard_Integer &) –
Return type:

bool

RatioWindow()
  • call_togl_ratio_window
Parameters:ACView (Graphic3d_CView &) –
Return type:void
ReadDepths()
  • Reads depths of shown pixels of the given rectangle (glReadPixels with GL_DEPTH_COMPONENT)
Parameters:
  • view (Graphic3d_CView &) –
  • x (Standard_Integer) –
  • y (Standard_Integer) –
  • width (Standard_Integer) –
  • height (Standard_Integer) –
  • buffer (Standard_Address) –
Return type:

void

Rectangle()
  • call_togl_rectangle2d
Parameters:
  • X (Standard_ShortReal) –
  • Y (Standard_ShortReal) –
  • Width (Standard_ShortReal) –
  • Height (Standard_ShortReal) –
Return type:

void

Redraw()
  • call_togl_redraw Warning: when the redraw area has a null size, the full view is redrawn
Parameters:
  • ACView (Graphic3d_CView &) –
  • ACUnderLayer (Aspect_CLayer2d &) –
  • ACOverLayer (Aspect_CLayer2d &) –
  • x (Standard_Integer) – default value is 0
  • y (Standard_Integer) – default value is 0
  • width (Standard_Integer) – default value is 0
  • height (Standard_Integer) – default value is 0
Return type:

void

  • call_togl_redraw Warning: when the redraw area has a null size, the full view is redrawn
Parameters:
  • ACView (Graphic3d_CView &) –
  • ACUnderLayer (Aspect_CLayer2d &) –
  • ACOverLayer (Aspect_CLayer2d &) –
  • x (Standard_Integer) – default value is 0
  • y (Standard_Integer) – default value is 0
  • width (Standard_Integer) – default value is 0
  • height (Standard_Integer) – default value is 0
Return type:

void

  • call_togl_redraw Warning: when the redraw area has a null size, the full view is redrawn
Parameters:
  • ACView (Graphic3d_CView &) –
  • ACUnderLayer (Aspect_CLayer2d &) –
  • ACOverLayer (Aspect_CLayer2d &) –
  • x (Standard_Integer) – default value is 0
  • y (Standard_Integer) – default value is 0
  • width (Standard_Integer) – default value is 0
  • height (Standard_Integer) – default value is 0
Return type:

void

  • call_togl_redraw Warning: when the redraw area has a null size, the full view is redrawn
Parameters:
  • ACView (Graphic3d_CView &) –
  • ACUnderLayer (Aspect_CLayer2d &) –
  • ACOverLayer (Aspect_CLayer2d &) –
  • x (Standard_Integer) – default value is 0
  • y (Standard_Integer) – default value is 0
  • width (Standard_Integer) – default value is 0
  • height (Standard_Integer) – default value is 0
Return type:

void

  • call_togl_redraw Warning: when the redraw area has a null size, the full view is redrawn
Parameters:
  • ACView (Graphic3d_CView &) –
  • ACUnderLayer (Aspect_CLayer2d &) –
  • ACOverLayer (Aspect_CLayer2d &) –
  • x (Standard_Integer) – default value is 0
  • y (Standard_Integer) – default value is 0
  • width (Standard_Integer) – default value is 0
  • height (Standard_Integer) – default value is 0
Return type:

void

RemoveGroup()
  • call_togl_removegroup
Parameters:ACGroup (Graphic3d_CGroup &) –
Return type:void
RemoveLayer()
  • call_togl_removelayer2d
Parameters:ACLayer (Aspect_CLayer2d &) –
Return type:void
RemoveStructure()
  • call_togl_removestructure
Parameters:ACStructure (Graphic3d_CStructure &) –
Return type:void
RemoveView()
  • call_togl_removeview
Parameters:ACView (Graphic3d_CView &) –
Return type:void
RemoveZLayer()
  • Remove Z layer from the specified view. All structures displayed at the moment in layer will be displayed in default layer ( the bottom-level z layer ). To unset layer ID from associated structures use method UnsetZLayer (...).
Parameters:
  • theCView (Graphic3d_CView &) –
  • theLayerId (Standard_Integer) –
Return type:

void

ResetDeviceLostFlag()
Return type:None
SetBackFacingModel()
  • call_togl_backfacing
Parameters:aView (Graphic3d_CView &) –
Return type:void
SetBgGradientStyle()
Parameters:
  • ACView (Graphic3d_CView &) –
  • FillStyle (Aspect_GradientFillMethod) –
Return type:

void

SetBgImageStyle()
Parameters:
  • ACView (Graphic3d_CView &) –
  • FillStyle (Aspect_FillMethod) –
Return type:

void

SetClipPlanes()
  • Pass clip planes to the associated graphic driver view.
Parameters:theCView (Graphic3d_CView &) –
Return type:void
  • Pass clip planes to the associated graphic driver structure.
Parameters:theCStructure (Graphic3d_CStructure &) –
Return type:void
SetColor()
  • call_togl_set_color
Parameters:
  • R (Standard_ShortReal) –
  • G (Standard_ShortReal) –
  • B (Standard_ShortReal) –
Return type:

void

SetDepthTestEnabled()
  • call_togl_depthtest
Parameters:
  • view (Graphic3d_CView &) –
  • isEnabled (bool) –
Return type:

void

SetFlippingOptions()
  • sets the flipping to theIsEnabled state for the given graphic group.
Parameters:
  • theCGroup (Graphic3d_CGroup &) –
  • theIsEnabled (bool) –
  • theRefPlane (gp_Ax2) –
Return type:

void

SetGLLightEnabled()
  • call_togl_gllight
Parameters:
  • view (Graphic3d_CView &) –
  • isEnabled (bool) –
Return type:

void

SetImmediateModeDrawToFront()
  • @param theDrawToFrontBuffer Advanced option to modify rendering mode: 1. True. Drawing immediate mode structures directly to the front buffer over the scene image. Fast, so preferred for interactive work (used by default). However these extra drawings will be missed in image dump since it is performed from back buffer. Notice that since no pre-buffering used the V-Sync will be ignored and rendering could be seen in run-time (in case of slow hardware) and/or tearing may appear. So this is strongly recommended to draw only simple (fast) structures. 2. False. Drawing immediate mode structures to the back buffer. The complete scene is redrawn first, so this mode is slower if scene contains complex data and/or V-Sync is turned on. But it works in any case and is especially useful for view dump because the dump image is read from the back buffer. returns previous mode.
Parameters:
  • theCView (Graphic3d_CView &) –
  • theDrawToFrontBuffer (bool) –
Return type:

bool

SetLight()
  • call_togl_setlight
Parameters:ACView (Graphic3d_CView &) –
Return type:void
SetLineAttributes()
  • call_togl_set_line_attributes
Parameters:
  • Type (Standard_Integer) –
  • Width (Standard_ShortReal) –
Return type:

void

SetStencilTestOptions()
  • sets the stencil test to theIsEnabled state;
Parameters:
  • theCGroup (Graphic3d_CGroup &) –
  • theIsEnabled (bool) –
Return type:

void

SetTextAttributes()
  • Set text attributes for under-/overlayer. <Font> argument defines the name of the font to be used, <Type> argument defines the display type of the text, <R> <G> <B> values define the color of decal or subtitle background. To set the color of the text you can use the SetColor method.
Parameters:
  • Font (char *) –
  • Type (Standard_Integer) –
  • R (Standard_ShortReal) –
  • G (Standard_ShortReal) –
  • B (Standard_ShortReal) –
Return type:

void

SetTrace()
Parameters:ALevel (Standard_Integer) –
Return type:None
SetTransparency()
  • call_togl_set_transparency
Parameters:ATransparency (Standard_ShortReal) –
Return type:void
SetVisualisation()
  • call_togl_setvisualisation
Parameters:ACView (Graphic3d_CView &) –
Return type:void
SetZLayerSettings()
  • Sets the settings for a single Z layer of specified view.
Parameters:
  • theCView (Graphic3d_CView &) –
  • theLayerId (Standard_Integer) –
  • theSettings (Graphic3d_ZLayerSettings) –
Return type:

void

Structure()
  • call_togl_structure
Parameters:ACStructure (Graphic3d_CStructure &) –
Return type:void
Text()
  • call_togl_text
Parameters:
  • ACGroup (Graphic3d_CGroup &) –
  • AText (char *) –
  • APoint (Graphic3d_Vertex &) –
  • AHeight (float) –
  • AAngle (Quantity_PlaneAngle) –
  • ATp (Graphic3d_TextPath) –
  • AHta (Graphic3d_HorizontalTextAlignment) –
  • AVta (Graphic3d_VerticalTextAlignment) –
  • EvalMinMax (bool) – default value is Standard_True
Return type:

void

  • call_togl_text
Parameters:
  • ACGroup (Graphic3d_CGroup &) –
  • AText (char *) –
  • APoint (Graphic3d_Vertex &) –
  • AHeight (float) –
  • AAngle (Quantity_PlaneAngle) –
  • ATp (Graphic3d_TextPath) –
  • AHta (Graphic3d_HorizontalTextAlignment) –
  • AVta (Graphic3d_VerticalTextAlignment) –
  • EvalMinMax (bool) – default value is Standard_True
Return type:

void

  • call_togl_text
Parameters:
  • ACGroup (Graphic3d_CGroup &) –
  • AText (char *) –
  • APoint (Graphic3d_Vertex &) –
  • AHeight (float) –
  • EvalMinMax (bool) – default value is Standard_True
Return type:

void

  • call_togl_text
Parameters:
  • ACGroup (Graphic3d_CGroup &) –
  • AText (char *) –
  • APoint (Graphic3d_Vertex &) –
  • AHeight (float) –
  • EvalMinMax (bool) – default value is Standard_True
Return type:

void

  • call_togl_text
Parameters:
  • ACGroup (Graphic3d_CGroup &) –
  • AText (TCollection_ExtendedString &) –
  • APoint (Graphic3d_Vertex &) –
  • AHeight (float) –
  • AAngle (Quantity_PlaneAngle) –
  • ATp (Graphic3d_TextPath) –
  • AHta (Graphic3d_HorizontalTextAlignment) –
  • AVta (Graphic3d_VerticalTextAlignment) –
  • EvalMinMax (bool) – default value is Standard_True
Return type:

void

  • call_togl_text
Parameters:
  • ACGroup (Graphic3d_CGroup &) –
  • AText (TCollection_ExtendedString &) –
  • APoint (Graphic3d_Vertex &) –
  • AHeight (float) –
  • AAngle (Quantity_PlaneAngle) –
  • ATp (Graphic3d_TextPath) –
  • AHta (Graphic3d_HorizontalTextAlignment) –
  • AVta (Graphic3d_VerticalTextAlignment) –
  • EvalMinMax (bool) – default value is Standard_True
Return type:

void

  • call_togl_text
Parameters:
  • ACGroup (Graphic3d_CGroup &) –
  • AText (TCollection_ExtendedString &) –
  • APoint (Graphic3d_Vertex &) –
  • AHeight (float) –
  • EvalMinMax (bool) – default value is Standard_True
Return type:

void

  • call_togl_text
Parameters:
  • ACGroup (Graphic3d_CGroup &) –
  • AText (TCollection_ExtendedString &) –
  • APoint (Graphic3d_Vertex &) –
  • AHeight (float) –
  • EvalMinMax (bool) – default value is Standard_True
Return type:

void

  • call_togl_text2d If AHeight < 0 default text height is used by driver (DefaultTextHeight method)
Parameters:
  • AText (char *) –
  • X (Standard_ShortReal) –
  • Y (Standard_ShortReal) –
  • AHeight (Standard_ShortReal) –
Return type:

void

TextContextGroup()
  • call_togl_textcontextgroup
Parameters:
  • ACGroup (Graphic3d_CGroup &) –
  • NoInsert (Standard_Integer) –
Return type:

void

TextSize()
  • call_togl_textsize2d
Parameters:
  • AText (char *) –
  • AHeight (Standard_ShortReal) –
  • AWidth (Standard_ShortReal &) –
  • AnAscent (Standard_ShortReal &) –
  • ADescent (Standard_ShortReal &) –
Return type:

void

Trace()
Return type:int
TransformStructure()
  • call_togl_transformstructure
Parameters:ACStructure (Graphic3d_CStructure &) –
Return type:void
Transparency()
  • call_togl_transparency
Parameters:
  • ACView (Graphic3d_CView &) –
  • AFlag (bool) –
Return type:

void

TriedronDisplay()
  • call_togl_triedron_display
Parameters:
  • ACView (Graphic3d_CView &) –
  • APosition (Aspect_TypeOfTriedronPosition) – default value is Aspect_TOTP_CENTER
  • AColor (Quantity_NameOfColor) – default value is Quantity_NOC_WHITE
  • AScale (float) – default value is 0.02
  • AsWireframe (bool) – default value is Standard_True
Return type:

void

  • call_togl_triedron_display
Parameters:
  • ACView (Graphic3d_CView &) –
  • APosition (Aspect_TypeOfTriedronPosition) – default value is Aspect_TOTP_CENTER
  • AColor (Quantity_NameOfColor) – default value is Quantity_NOC_WHITE
  • AScale (float) – default value is 0.02
  • AsWireframe (bool) – default value is Standard_True
Return type:

void

  • call_togl_triedron_display
Parameters:
  • ACView (Graphic3d_CView &) –
  • APosition (Aspect_TypeOfTriedronPosition) – default value is Aspect_TOTP_CENTER
  • AColor (Quantity_NameOfColor) – default value is Quantity_NOC_WHITE
  • AScale (float) – default value is 0.02
  • AsWireframe (bool) – default value is Standard_True
Return type:

void

  • call_togl_triedron_display
Parameters:
  • ACView (Graphic3d_CView &) –
  • APosition (Aspect_TypeOfTriedronPosition) – default value is Aspect_TOTP_CENTER
  • AColor (Quantity_NameOfColor) – default value is Quantity_NOC_WHITE
  • AScale (float) – default value is 0.02
  • AsWireframe (bool) – default value is Standard_True
Return type:

void

  • call_togl_triedron_display
Parameters:
  • ACView (Graphic3d_CView &) –
  • APosition (Aspect_TypeOfTriedronPosition) – default value is Aspect_TOTP_CENTER
  • AColor (Quantity_NameOfColor) – default value is Quantity_NOC_WHITE
  • AScale (float) – default value is 0.02
  • AsWireframe (bool) – default value is Standard_True
Return type:

void

TriedronEcho()
  • call_togl_triedron_echo
Parameters:
  • ACView (Graphic3d_CView &) –
  • AType (Aspect_TypeOfTriedronEcho) – default value is Aspect_TOTE_NONE
Return type:

void

  • call_togl_triedron_echo
Parameters:
  • ACView (Graphic3d_CView &) –
  • AType (Aspect_TypeOfTriedronEcho) – default value is Aspect_TOTE_NONE
Return type:

void

TriedronErase()
  • call_togl_triedron_erase
Parameters:ACView (Graphic3d_CView &) –
Return type:void
UnProjectRaster()
  • call_togl_unproject_raster
Parameters:
  • ACView (Graphic3d_CView &) –
  • Axm (Standard_Integer) –
  • Aym (Standard_Integer) –
  • AXM (Standard_Integer) –
  • AYM (Standard_Integer) –
  • AU (Standard_Integer) –
  • AV (Standard_Integer) –
  • AX (Standard_ShortReal &) –
  • AY (Standard_ShortReal &) –
  • AZ (Standard_ShortReal &) –
Return type:

bool

UnProjectRasterWithRay()
  • call_togl_unproject_raster_with_ray
Parameters:
  • ACView (Graphic3d_CView &) –
  • Axm (Standard_Integer) –
  • Aym (Standard_Integer) –
  • AXM (Standard_Integer) –
  • AYM (Standard_Integer) –
  • AU (Standard_Integer) –
  • AV (Standard_Integer) –
  • AX (Standard_ShortReal &) –
  • AY (Standard_ShortReal &) –
  • AZ (Standard_ShortReal &) –
  • DX (Standard_ShortReal &) –
  • DY (Standard_ShortReal &) –
  • DZ (Standard_ShortReal &) –
Return type:

bool

UnsetTransparency()
  • call_togl_unset_transparency
Return type:void
UnsetZLayer()
  • Unset Z layer ID for all structures. The structure indexes will be set to default layer ( the bottom-level z layer with ID = 0 ).
Parameters:theLayerId (Standard_Integer) –
Return type:void
Update()
  • call_togl_update
Parameters:
  • ACView (Graphic3d_CView &) –
  • ACUnderLayer (Aspect_CLayer2d &) –
  • ACOverLayer (Aspect_CLayer2d &) –
Return type:

void

UserDraw()
  • call_togl_userdraw
Parameters:
  • ACGroup (Graphic3d_CGroup &) –
  • AUserDraw (Graphic3d_CUserDraw &) –
Return type:

void

View()
  • call_togl_view
Parameters:ACView (Graphic3d_CView &) –
Return type:bool
ViewMapping()
  • call_togl_viewmapping
Parameters:
  • ACView (Graphic3d_CView &) –
  • AWait (bool) –
Return type:

void

ViewOrientation()
  • call_togl_vieworientation
Parameters:
  • ACView (Graphic3d_CView &) –
  • AWait (bool) –
Return type:

void

ZBufferTriedronSetup()
  • call_togl_ztriedron_setup
Parameters:
  • XColor (Quantity_NameOfColor) – default value is Quantity_NOC_RED
  • YColor (Quantity_NameOfColor) – default value is Quantity_NOC_GREEN
  • ZColor (Quantity_NameOfColor) – default value is Quantity_NOC_BLUE1
  • SizeRatio (float) – default value is 0.8
  • AxisDiametr (float) – default value is 0.05
  • NbFacettes (Standard_Integer) – default value is 12
Return type:

void

  • call_togl_ztriedron_setup
Parameters:
  • XColor (Quantity_NameOfColor) – default value is Quantity_NOC_RED
  • YColor (Quantity_NameOfColor) – default value is Quantity_NOC_GREEN
  • ZColor (Quantity_NameOfColor) – default value is Quantity_NOC_BLUE1
  • SizeRatio (float) – default value is 0.8
  • AxisDiametr (float) – default value is 0.05
  • NbFacettes (Standard_Integer) – default value is 12
Return type:

void

  • call_togl_ztriedron_setup
Parameters:
  • XColor (Quantity_NameOfColor) – default value is Quantity_NOC_RED
  • YColor (Quantity_NameOfColor) – default value is Quantity_NOC_GREEN
  • ZColor (Quantity_NameOfColor) – default value is Quantity_NOC_BLUE1
  • SizeRatio (float) – default value is 0.8
  • AxisDiametr (float) – default value is 0.05
  • NbFacettes (Standard_Integer) – default value is 12
Return type:

void

  • call_togl_ztriedron_setup
Parameters:
  • XColor (Quantity_NameOfColor) – default value is Quantity_NOC_RED
  • YColor (Quantity_NameOfColor) – default value is Quantity_NOC_GREEN
  • ZColor (Quantity_NameOfColor) – default value is Quantity_NOC_BLUE1
  • SizeRatio (float) – default value is 0.8
  • AxisDiametr (float) – default value is 0.05
  • NbFacettes (Standard_Integer) – default value is 12
Return type:

void

  • call_togl_ztriedron_setup
Parameters:
  • XColor (Quantity_NameOfColor) – default value is Quantity_NOC_RED
  • YColor (Quantity_NameOfColor) – default value is Quantity_NOC_GREEN
  • ZColor (Quantity_NameOfColor) – default value is Quantity_NOC_BLUE1
  • SizeRatio (float) – default value is 0.8
  • AxisDiametr (float) – default value is 0.05
  • NbFacettes (Standard_Integer) – default value is 12
Return type:

void

  • call_togl_ztriedron_setup
Parameters:
  • XColor (Quantity_NameOfColor) – default value is Quantity_NOC_RED
  • YColor (Quantity_NameOfColor) – default value is Quantity_NOC_GREEN
  • ZColor (Quantity_NameOfColor) – default value is Quantity_NOC_BLUE1
  • SizeRatio (float) – default value is 0.8
  • AxisDiametr (float) – default value is 0.05
  • NbFacettes (Standard_Integer) – default value is 12
Return type:

void

  • call_togl_ztriedron_setup
Parameters:
  • XColor (Quantity_NameOfColor) – default value is Quantity_NOC_RED
  • YColor (Quantity_NameOfColor) – default value is Quantity_NOC_GREEN
  • ZColor (Quantity_NameOfColor) – default value is Quantity_NOC_BLUE1
  • SizeRatio (float) – default value is 0.8
  • AxisDiametr (float) – default value is 0.05
  • NbFacettes (Standard_Integer) – default value is 12
Return type:

void

thisown

The membership flag

class OCC.Graphic3d.Graphic3d_Group(*args)

Bases: OCC.MMgt.MMgt_TShared

AddPrimitiveArray()
  • Adds an array of primitives for display
Parameters:
  • elem (Handle_Graphic3d_ArrayOfPrimitives &) –
  • EvalMinMax (bool) – default value is Standard_True
Return type:

None

  • Adds an array of primitives for display
Parameters:
  • elem (Handle_Graphic3d_ArrayOfPrimitives &) –
  • EvalMinMax (bool) – default value is Standard_True
Return type:

None

Clear()
  • Supress all primitives and attributes of <self>. To clear group without update in Graphic3d_StructureManager pass Standard_False as <theUpdateStructureMgr>. This used on context and viewer destruction, when the pointer to structure manager in Graphic3d_Structure could be already released (pointers are used here to avoid handle cross-reference);
Parameters:theUpdateStructureMgr (bool) – default value is Standard_True
Return type:None
  • Supress all primitives and attributes of <self>. To clear group without update in Graphic3d_StructureManager pass Standard_False as <theUpdateStructureMgr>. This used on context and viewer destruction, when the pointer to structure manager in Graphic3d_Structure could be already released (pointers are used here to avoid handle cross-reference);
Parameters:theUpdateStructureMgr (bool) – default value is Standard_True
Return type:None
ContainsFacet()
  • Returns Standard_True if the group <self> contains Polygons, Triangles or Quadrangles.
Return type:bool
Destroy()
  • Supress the group <self> in the structure.
Return type:None
GetHandle()

Graphic3d_Group_GetHandle(Graphic3d_Group self) -> Handle_Graphic3d_Group

IsDeleted()
  • Returns Standard_True if the group <self> is deleted. <self> is deleted after the call Remove (me) or the associated structure is deleted.
Return type:bool
IsEmpty()
  • Returns Standard_True if the group <self> is empty.
Return type:bool
IsGroupPrimitivesAspectSet()
  • Returns True if aspect is set for the group.
Parameters:theAspect (Graphic3d_GroupAspect) –
Return type:bool
Marker()
  • Creates a primitive array with single marker using AddPrimitiveArray().
Parameters:
  • thePoint (Graphic3d_Vertex &) –
  • theToEvalMinMax (bool) – default value is Standard_True
Return type:

None

  • Creates a primitive array with single marker using AddPrimitiveArray().
Parameters:
  • thePoint (Graphic3d_Vertex &) –
  • theToEvalMinMax (bool) – default value is Standard_True
Return type:

None

MinMaxValues()
  • Returns the coordinates of the boundary box of the group <self>.
Parameters:
  • XMin (float &) –
  • YMin (float &) –
  • ZMin (float &) –
  • XMax (float &) –
  • YMax (float &) –
  • ZMax (float &) –
Return type:

None

Remove()
  • Supress the group <self> in the structure. Warning: No more graphic operations in <self> after this call. Modifies the current modelling transform persistence (pan, zoom or rotate) Get the current modelling transform persistence (pan, zoom or rotate)
Return type:None
SetFlippingOptions()
  • sets the flipping to theIsEnabled state.
Parameters:
  • theIsEnabled (bool) –
  • theRefPlane (gp_Ax2) –
Return type:

None

SetMinMaxValues()
  • Sets the coordinates of the boundary box of the group <self>.
Parameters:
  • XMin (float) –
  • YMin (float) –
  • ZMin (float) –
  • XMax (float) –
  • YMax (float) –
  • ZMax (float) –
Return type:

None

SetPrimitivesAspect()
  • Modifies the current context of the group to give another aspect for all the line primitives created after this call in the group.
Parameters:CTX (Handle_Graphic3d_AspectLine3d &) –
Return type:None
  • Modifies the current context of the group to give another aspect for all the face primitives created after this call in the group.
Parameters:CTX (Handle_Graphic3d_AspectFillArea3d &) –
Return type:None
  • Modifies the current context of the group to give another aspect for all the text primitives created after this call in the group.
Parameters:CTX (Handle_Graphic3d_AspectText3d &) –
Return type:None
  • Modifies the current context of the group to give another aspect for all the marker primitives created after this call in the group.
Parameters:CTX (Handle_Graphic3d_AspectMarker3d &) –
Return type:None
SetStencilTestOptions()
  • sets the stencil test to theIsEnabled state;
Parameters:theIsEnabled (bool) –
Return type:None
Structure()
  • Returns the structure containing the group <self>.
Return type:Handle_Graphic3d_Structure
Text()
  • Creates the string <AText> at position <APoint>. The 3D point of attachment is projected. The text is written in the plane of projection. The attributes are given with respect to the plane of projection. AHeight : Height of text. (Relative to the Normalized Projection Coordinates (NPC) Space). AAngle : Orientation of the text (with respect to the horizontal).
Parameters:
  • AText (char *) –
  • APoint (Graphic3d_Vertex &) –
  • AHeight (float) –
  • AAngle (Quantity_PlaneAngle) –
  • ATp (Graphic3d_TextPath) –
  • AHta (Graphic3d_HorizontalTextAlignment) –
  • AVta (Graphic3d_VerticalTextAlignment) –
  • EvalMinMax (bool) – default value is Standard_True
Return type:

None

  • Creates the string <AText> at position <APoint>. The 3D point of attachment is projected. The text is written in the plane of projection. The attributes are given with respect to the plane of projection. AHeight : Height of text. (Relative to the Normalized Projection Coordinates (NPC) Space). AAngle : Orientation of the text (with respect to the horizontal).
Parameters:
  • AText (char *) –
  • APoint (Graphic3d_Vertex &) –
  • AHeight (float) –
  • AAngle (Quantity_PlaneAngle) –
  • ATp (Graphic3d_TextPath) –
  • AHta (Graphic3d_HorizontalTextAlignment) –
  • AVta (Graphic3d_VerticalTextAlignment) –
  • EvalMinMax (bool) – default value is Standard_True
Return type:

None

  • Creates the string <AText> at position <APoint>. The 3D point of attachment is projected. The text is written in the plane of projection. The attributes are given with respect to the plane of projection. AHeight : Height of text. (Relative to the Normalized Projection Coordinates (NPC) Space). The other attributes have the following default values: AAngle : PI / 2. ATp : TP_RIGHT AHta : HTA_LEFT AVta : VTA_BOTTOM
Parameters:
  • AText (char *) –
  • APoint (Graphic3d_Vertex &) –
  • AHeight (float) –
  • EvalMinMax (bool) – default value is Standard_True
Return type:

None

  • Creates the string <AText> at position <APoint>. The 3D point of attachment is projected. The text is written in the plane of projection. The attributes are given with respect to the plane of projection. AHeight : Height of text. (Relative to the Normalized Projection Coordinates (NPC) Space). The other attributes have the following default values: AAngle : PI / 2. ATp : TP_RIGHT AHta : HTA_LEFT AVta : VTA_BOTTOM
Parameters:
  • AText (char *) –
  • APoint (Graphic3d_Vertex &) –
  • AHeight (float) –
  • EvalMinMax (bool) – default value is Standard_True
Return type:

None

  • Creates the string <AText> at position <APoint>. The 3D point of attachment is projected. The text is written in the plane of projection. The attributes are given with respect to the plane of projection. AHeight : Height of text. (Relative to the Normalized Projection Coordinates (NPC) Space). AAngle : Orientation of the text (with respect to the horizontal).
Parameters:
  • AText (TCollection_ExtendedString &) –
  • APoint (Graphic3d_Vertex &) –
  • AHeight (float) –
  • AAngle (Quantity_PlaneAngle) –
  • ATp (Graphic3d_TextPath) –
  • AHta (Graphic3d_HorizontalTextAlignment) –
  • AVta (Graphic3d_VerticalTextAlignment) –
  • EvalMinMax (bool) – default value is Standard_True
Return type:

None

  • Creates the string <AText> at position <APoint>. The 3D point of attachment is projected. The text is written in the plane of projection. The attributes are given with respect to the plane of projection. AHeight : Height of text. (Relative to the Normalized Projection Coordinates (NPC) Space). AAngle : Orientation of the text (with respect to the horizontal).
Parameters:
  • AText (TCollection_ExtendedString &) –
  • APoint (Graphic3d_Vertex &) –
  • AHeight (float) –
  • AAngle (Quantity_PlaneAngle) –
  • ATp (Graphic3d_TextPath) –
  • AHta (Graphic3d_HorizontalTextAlignment) –
  • AVta (Graphic3d_VerticalTextAlignment) –
  • EvalMinMax (bool) – default value is Standard_True
Return type:

None

  • Creates the string <AText> at position <APoint>. The 3D point of attachment is projected. The text is written in the plane of projection. The attributes are given with respect to the plane of projection. AHeight : Height of text. (Relative to the Normalized Projection Coordinates (NPC) Space). The other attributes have the following default values: AAngle : PI / 2. ATp : TP_RIGHT AHta : HTA_LEFT AVta : VTA_BOTTOM
Parameters:
  • AText (TCollection_ExtendedString &) –
  • APoint (Graphic3d_Vertex &) –
  • AHeight (float) –
  • EvalMinMax (bool) – default value is Standard_True
Return type:

None

  • Creates the string <AText> at position <APoint>. The 3D point of attachment is projected. The text is written in the plane of projection. The attributes are given with respect to the plane of projection. AHeight : Height of text. (Relative to the Normalized Projection Coordinates (NPC) Space). The other attributes have the following default values: AAngle : PI / 2. ATp : TP_RIGHT AHta : HTA_LEFT AVta : VTA_BOTTOM
Parameters:
  • AText (TCollection_ExtendedString &) –
  • APoint (Graphic3d_Vertex &) –
  • AHeight (float) –
  • EvalMinMax (bool) – default value is Standard_True
Return type:

None

UserDraw()
  • Creates an UserDraw primitive Category: Methods to create UserDraw Warning: Raises GroupDefinitionError if ...
Parameters:
  • AnObject (Standard_Address) –
  • EvalMinMax (bool) – default value is Standard_True
  • ContainsFacet (bool) – default value is Standard_False
Return type:

None

  • Creates an UserDraw primitive Category: Methods to create UserDraw Warning: Raises GroupDefinitionError if ...
Parameters:
  • AnObject (Standard_Address) –
  • EvalMinMax (bool) – default value is Standard_True
  • ContainsFacet (bool) – default value is Standard_False
Return type:

None

  • Creates an UserDraw primitive Category: Methods to create UserDraw Warning: Raises GroupDefinitionError if ...
Parameters:
  • AnObject (Standard_Address) –
  • EvalMinMax (bool) – default value is Standard_True
  • ContainsFacet (bool) – default value is Standard_False
Return type:

None

thisown

The membership flag

class OCC.Graphic3d.Graphic3d_HSequenceOfGroup

Bases: OCC.MMgt.MMgt_TShared

Append()
Parameters:
  • anItem (Handle_Graphic3d_Group &) –
  • aSequence (Handle_Graphic3d_HSequenceOfGroup &) –
Return type:

None

Return type:

None

ChangeSequence()
Return type:Graphic3d_SequenceOfGroup
ChangeValue()
Parameters:anIndex (Standard_Integer) –
Return type:Handle_Graphic3d_Group
Clear()
Return type:None
Exchange()
Parameters:
  • anIndex (Standard_Integer) –
  • anOtherIndex (Standard_Integer) –
Return type:

None

GetHandle()

Graphic3d_HSequenceOfGroup_GetHandle(Graphic3d_HSequenceOfGroup self) -> Handle_Graphic3d_HSequenceOfGroup

InsertAfter()
Parameters:
  • anIndex (Standard_Integer) –
  • anItem (Handle_Graphic3d_Group &) –
  • anIndex
  • aSequence (Handle_Graphic3d_HSequenceOfGroup &) –
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • anIndex (Standard_Integer) –
  • anItem (Handle_Graphic3d_Group &) –
  • anIndex
  • aSequence (Handle_Graphic3d_HSequenceOfGroup &) –
Return type:

None

Return type:

None

IsEmpty()
Return type:bool
Length()
Return type:int
Prepend()
Parameters:
  • anItem (Handle_Graphic3d_Group &) –
  • aSequence (Handle_Graphic3d_HSequenceOfGroup &) –
Return type:

None

Return type:

None

Remove()
Parameters:
  • anIndex (Standard_Integer) –
  • fromIndex (Standard_Integer) –
  • toIndex (Standard_Integer) –
Return type:

None

Return type:

None

Reverse()
Return type:None
Sequence()
Return type:Graphic3d_SequenceOfGroup
SetValue()
Parameters:
  • anIndex (Standard_Integer) –
  • anItem (Handle_Graphic3d_Group &) –
Return type:

None

ShallowCopy()
Return type:Handle_Graphic3d_HSequenceOfGroup
Split()
Parameters:anIndex (Standard_Integer) –
Return type:Handle_Graphic3d_HSequenceOfGroup
Value()
Parameters:anIndex (Standard_Integer) –
Return type:Handle_Graphic3d_Group
thisown

The membership flag

class OCC.Graphic3d.Graphic3d_HSequenceOfStructure

Bases: OCC.MMgt.MMgt_TShared

Append()
Parameters:
  • anItem (Handle_Graphic3d_Structure &) –
  • aSequence (Handle_Graphic3d_HSequenceOfStructure &) –
Return type:

None

Return type:

None

ChangeSequence()
Return type:Graphic3d_SequenceOfStructure
ChangeValue()
Parameters:anIndex (Standard_Integer) –
Return type:Handle_Graphic3d_Structure
Clear()
Return type:None
Exchange()
Parameters:
  • anIndex (Standard_Integer) –
  • anOtherIndex (Standard_Integer) –
Return type:

None

GetHandle()

Graphic3d_HSequenceOfStructure_GetHandle(Graphic3d_HSequenceOfStructure self) -> Handle_Graphic3d_HSequenceOfStructure

InsertAfter()
Parameters:
  • anIndex (Standard_Integer) –
  • anItem (Handle_Graphic3d_Structure &) –
  • anIndex
  • aSequence (Handle_Graphic3d_HSequenceOfStructure &) –
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • anIndex (Standard_Integer) –
  • anItem (Handle_Graphic3d_Structure &) –
  • anIndex
  • aSequence (Handle_Graphic3d_HSequenceOfStructure &) –
Return type:

None

Return type:

None

IsEmpty()
Return type:bool
Length()
Return type:int
Prepend()
Parameters:
  • anItem (Handle_Graphic3d_Structure &) –
  • aSequence (Handle_Graphic3d_HSequenceOfStructure &) –
Return type:

None

Return type:

None

Remove()
Parameters:
  • anIndex (Standard_Integer) –
  • fromIndex (Standard_Integer) –
  • toIndex (Standard_Integer) –
Return type:

None

Return type:

None

Reverse()
Return type:None
Sequence()
Return type:Graphic3d_SequenceOfStructure
SetValue()
Parameters:
  • anIndex (Standard_Integer) –
  • anItem (Handle_Graphic3d_Structure &) –
Return type:

None

ShallowCopy()
Return type:Handle_Graphic3d_HSequenceOfStructure
Split()
Parameters:anIndex (Standard_Integer) –
Return type:Handle_Graphic3d_HSequenceOfStructure
Value()
Parameters:anIndex (Standard_Integer) –
Return type:Handle_Graphic3d_Structure
thisown

The membership flag

class OCC.Graphic3d.Graphic3d_HSetOfGroup

Bases: OCC.MMgt.MMgt_TShared

Add()
Parameters:T (Handle_Graphic3d_Group &) –
Return type:bool
ChangeSet()
Return type:Graphic3d_SetOfGroup
Clear()
Return type:None
Contains()
Parameters:T (Handle_Graphic3d_Group &) –
Return type:bool
Difference()
Parameters:B (Handle_Graphic3d_HSetOfGroup &) –
Return type:Handle_Graphic3d_HSetOfGroup
Extent()
Return type:int
GetHandle()

Graphic3d_HSetOfGroup_GetHandle(Graphic3d_HSetOfGroup self) -> Handle_Graphic3d_HSetOfGroup

Intersection()
Parameters:B (Handle_Graphic3d_HSetOfGroup &) –
Return type:Handle_Graphic3d_HSetOfGroup
IsAProperSubset()
Parameters:S (Handle_Graphic3d_HSetOfGroup &) –
Return type:bool
IsASubset()
Parameters:S (Handle_Graphic3d_HSetOfGroup &) –
Return type:bool
IsEmpty()
Return type:bool
Remove()
Parameters:T (Handle_Graphic3d_Group &) –
Return type:bool
Set()
Return type:Graphic3d_SetOfGroup
ShallowCopy()
Return type:Handle_Graphic3d_HSetOfGroup
Union()
Parameters:B (Handle_Graphic3d_HSetOfGroup &) –
Return type:Handle_Graphic3d_HSetOfGroup
thisown

The membership flag

class OCC.Graphic3d.Graphic3d_ListIteratorOfListOfPArray(*args)

Bases: object

Initialize()
Parameters:L (Graphic3d_ListOfPArray &) –
Return type:None
More()
Return type:bool
Next()
Return type:None
Value()
Return type:Handle_Graphic3d_ArrayOfPrimitives
thisown

The membership flag

class OCC.Graphic3d.Graphic3d_ListIteratorOfListOfShortReal(*args)

Bases: object

Initialize()
Parameters:L (Graphic3d_ListOfShortReal &) –
Return type:None
More()
Return type:bool
Next()
Return type:None
Value()
Return type:Standard_ShortReal
thisown

The membership flag

class OCC.Graphic3d.Graphic3d_ListIteratorOfSetListOfSetOfGroup(*args)

Bases: object

Initialize()
Parameters:L (Graphic3d_SetListOfSetOfGroup &) –
Return type:None
More()
Return type:bool
Next()
Return type:None
Value()
Return type:Handle_Graphic3d_Group
thisown

The membership flag

class OCC.Graphic3d.Graphic3d_ListNodeOfListOfPArray(*args)

Bases: OCC.TCollection.TCollection_MapNode

GetHandle()

Graphic3d_ListNodeOfListOfPArray_GetHandle(Graphic3d_ListNodeOfListOfPArray self) -> Handle_Graphic3d_ListNodeOfListOfPArray

Value()
Return type:Handle_Graphic3d_ArrayOfPrimitives
thisown

The membership flag

class OCC.Graphic3d.Graphic3d_ListNodeOfListOfShortReal(*args)

Bases: OCC.TCollection.TCollection_MapNode

GetHandle()

Graphic3d_ListNodeOfListOfShortReal_GetHandle(Graphic3d_ListNodeOfListOfShortReal self) -> Handle_Graphic3d_ListNodeOfListOfShortReal

Value()
Return type:Standard_ShortReal
thisown

The membership flag

class OCC.Graphic3d.Graphic3d_ListNodeOfSetListOfSetOfGroup(*args)

Bases: OCC.TCollection.TCollection_MapNode

GetHandle()

Graphic3d_ListNodeOfSetListOfSetOfGroup_GetHandle(Graphic3d_ListNodeOfSetListOfSetOfGroup self) -> Handle_Graphic3d_ListNodeOfSetListOfSetOfGroup

Value()
Return type:Handle_Graphic3d_Group
thisown

The membership flag

class OCC.Graphic3d.Graphic3d_ListOfPArray

Bases: object

Append()
Parameters:
  • I (Handle_Graphic3d_ArrayOfPrimitives &) –
  • I
  • theIt (Graphic3d_ListIteratorOfListOfPArray &) –
  • Other (Graphic3d_ListOfPArray &) –
Return type:

None

Return type:

None

Return type:

None

Assign()
Parameters:Other (Graphic3d_ListOfPArray &) –
Return type:None
Clear()
Return type:None
Extent()
Return type:int
First()
Return type:Handle_Graphic3d_ArrayOfPrimitives
InsertAfter()
Parameters:
  • I (Handle_Graphic3d_ArrayOfPrimitives &) –
  • It (Graphic3d_ListIteratorOfListOfPArray &) –
  • Other (Graphic3d_ListOfPArray &) –
  • It
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • I (Handle_Graphic3d_ArrayOfPrimitives &) –
  • It (Graphic3d_ListIteratorOfListOfPArray &) –
  • Other (Graphic3d_ListOfPArray &) –
  • It
Return type:

None

Return type:

None

IsEmpty()
Return type:bool
Last()
Return type:Handle_Graphic3d_ArrayOfPrimitives
Prepend()
Parameters:
  • I (Handle_Graphic3d_ArrayOfPrimitives &) –
  • I
  • theIt (Graphic3d_ListIteratorOfListOfPArray &) –
  • Other (Graphic3d_ListOfPArray &) –
Return type:

None

Return type:

None

Return type:

None

Remove()
Parameters:It (Graphic3d_ListIteratorOfListOfPArray &) –
Return type:None
RemoveFirst()
Return type:None
Set()
Parameters:Other (Graphic3d_ListOfPArray &) –
Return type:None
thisown

The membership flag

class OCC.Graphic3d.Graphic3d_ListOfShortReal

Bases: object

Append()
Parameters:
  • I (Standard_ShortReal &) –
  • I
  • theIt (Graphic3d_ListIteratorOfListOfShortReal &) –
  • Other (Graphic3d_ListOfShortReal &) –
Return type:

None

Return type:

None

Return type:

None

Assign()
Parameters:Other (Graphic3d_ListOfShortReal &) –
Return type:None
Clear()
Return type:None
Extent()
Return type:int
First()
Return type:Standard_ShortReal
InsertAfter()
Parameters:
  • I (Standard_ShortReal &) –
  • It (Graphic3d_ListIteratorOfListOfShortReal &) –
  • Other (Graphic3d_ListOfShortReal &) –
  • It
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • I (Standard_ShortReal &) –
  • It (Graphic3d_ListIteratorOfListOfShortReal &) –
  • Other (Graphic3d_ListOfShortReal &) –
  • It
Return type:

None

Return type:

None

IsEmpty()
Return type:bool
Last()
Return type:Standard_ShortReal
Prepend()
Parameters:
  • I (Standard_ShortReal &) –
  • I
  • theIt (Graphic3d_ListIteratorOfListOfShortReal &) –
  • Other (Graphic3d_ListOfShortReal &) –
Return type:

None

Return type:

None

Return type:

None

Remove()
Parameters:It (Graphic3d_ListIteratorOfListOfShortReal &) –
Return type:None
RemoveFirst()
Return type:None
Set()
Parameters:Other (Graphic3d_ListOfShortReal &) –
Return type:None
thisown

The membership flag

class OCC.Graphic3d.Graphic3d_MapIteratorOfMapOfStructure(*args)

Bases: OCC.TCollection.TCollection_BasicMapIterator

Initialize()
Parameters:aMap (Graphic3d_MapOfStructure &) –
Return type:None
Key()
Return type:Handle_Graphic3d_Structure
thisown

The membership flag

class OCC.Graphic3d.Graphic3d_MapOfStructure(NbBuckets=1)

Bases: OCC.TCollection.TCollection_BasicMap

Add()
Parameters:aKey (Handle_Graphic3d_Structure &) –
Return type:bool
Assign()
Parameters:Other (Graphic3d_MapOfStructure &) –
Return type:Graphic3d_MapOfStructure
Clear()
Return type:None
Contains()
Parameters:aKey (Handle_Graphic3d_Structure &) –
Return type:bool
ReSize()
Parameters:NbBuckets (Standard_Integer) –
Return type:None
Remove()
Parameters:aKey (Handle_Graphic3d_Structure &) –
Return type:bool
Set()
Parameters:Other (Graphic3d_MapOfStructure &) –
Return type:Graphic3d_MapOfStructure
thisown

The membership flag

class OCC.Graphic3d.Graphic3d_MarkerImage(*args)

Bases: OCC.Standard.Standard_Transient

GetBitMapArray()
  • @param theAlphaValue pixels in the image that have alpha value greater than or equal to this parameter will be stored in bitmap as ‘1’, others will be stored as ‘0’ returns marker image as array of bytes. If an instance of the class has been initialized with image, it will be converted to bitmap based on the parameter theAlphaValue.
Parameters:theAlphaValue (float &) – default value is 0.5
Return type:Handle_TColStd_HArray1OfByte
  • @param theAlphaValue pixels in the image that have alpha value greater than or equal to this parameter will be stored in bitmap as ‘1’, others will be stored as ‘0’ returns marker image as array of bytes. If an instance of the class has been initialized with image, it will be converted to bitmap based on the parameter theAlphaValue.
Parameters:theAlphaValue (float &) – default value is 0.5
Return type:Handle_TColStd_HArray1OfByte
GetImage()
  • returns marker image. If an instance of the class has been initialized with a bitmap, it will be converted to image.
Return type:Handle_Image_PixMap
GetImageAlpha()
  • returns image alpha as grayscale image. Note that if an instance of the class has been initialized with a bitmap or with grayscale image this method will return exactly the same image as GetImage()
Return type:Handle_Image_PixMap
GetImageAlphaId()
  • returns an unique ID. This ID will be used to manage resource in graphic driver.
Return type:TCollection_AsciiString
GetImageId()
  • returns an unique ID. This ID will be used to manage resource in graphic driver.
Return type:TCollection_AsciiString
GetTextureSize()
  • returns texture size
Parameters:
  • theWidth (Standard_Integer &) –
  • theHeight (Standard_Integer &) –
Return type:

None

thisown

The membership flag

class OCC.Graphic3d.Graphic3d_MaterialAspect(*args)

Bases: object

Ambient()
  • Returns the reflection properties of the surface.
Return type:float
AmbientColor()
  • Returns the ambient colour of the surface.
Return type:Quantity_Color
Color()
  • Returns the ambient colour of the surface.
Return type:Quantity_Color
Diffuse()
  • Returns the reflection properties of the surface.
Return type:float
DiffuseColor()
  • Returns the diffuse colour of the surface.
Return type:Quantity_Color
Emissive()
  • Returns the emissive coefficient of the surface.
Return type:float
EmissiveColor()
  • Returns the emissive colour of the surface.
Return type:Quantity_Color
EnvReflexion()
Return type:Standard_ShortReal
IncreaseShine()
  • Increases or decreases the luminosity of <self>. //! <ADelta> is a signed percentage.
Parameters:ADelta (float) –
Return type:None
IsDifferent()
  • Returns Standard_True if the materials <self> and <Other> are different.
Parameters:Other (Graphic3d_MaterialAspect &) –
Return type:bool
IsEqual()
  • Returns Standard_True if the materials <self> and <Other> are identical.
Parameters:Other (Graphic3d_MaterialAspect &) –
Return type:bool
static MaterialFromName(*args)
  • Returns the material for specified name or Graphic3d_NOM_DEFAULT if name is unknown.
Parameters:theName (char *) –
Return type:Graphic3d_NameOfMaterial
MaterialName()
  • Returns the name of the predefined material of rank <aRank> Trigger: when <aRank> is < 1 or > NumberOfMaterials.
Parameters:aRank (Standard_Integer) –
Return type:char *
  • Returns the name of this material
Return type:char *
static MaterialType(*args)
  • Returns Standard_True if MyMaterialType equal the parameter AType, //! Standard_False otherwise.
Parameters:AType (Graphic3d_TypeOfMaterial) –
Return type:bool
  • Returns the type of the predefined material of rank <aRank> Trigger: when <aRank> is < 1 or > NumberOfMaterials.
Parameters:aRank (Standard_Integer) –
Return type:Graphic3d_TypeOfMaterial
Name()
  • Returns the material name.
Return type:Graphic3d_NameOfMaterial
static NumberOfMaterials()
  • Returns the number of predefined textures.
Return type:int
ReflectionMode()
  • Returns Standard_True if the reflection mode is active, //! Standard_False otherwise.
Parameters:AType (Graphic3d_TypeOfReflection) –
Return type:bool
Reset()
  • Resets the material with the original values according to the material name but leave the current color values untouched for the material of type ASPECT.
Return type:None
SetAmbient()
  • Modifies the reflection properties of the surface. Category: Methods to modify the class definition Warning: Raises MaterialDefinitionError if <AValue> is //! a negative value or greater than 1.0.
Parameters:AValue (float) –
Return type:None
SetAmbientColor()
  • Modifies the ambient colour of the surface.
Parameters:AColor (Quantity_Color &) –
Return type:None
SetColor()
  • Modifies the ambient colour of the surface. Category: Methods to modify the class definition
Parameters:AColor (Quantity_Color &) –
Return type:None
SetDiffuse()
  • Modifies the reflection properties of the surface. Category: Methods to modify the class definition Warning: Raises MaterialDefinitionError if <AValue> is a //! negative value or greater than 1.0.
Parameters:AValue (float) –
Return type:None
SetDiffuseColor()
  • Modifies the difuse colour of the surface.
Parameters:AColor (Quantity_Color &) –
Return type:None
SetEmissive()
  • Modifies the reflection properties of the surface. Category: Methods to modify the class definition Warning: Raises MaterialDefinitionError if <AValue> is a //! negative value or greater than 1.0.
Parameters:AValue (float) –
Return type:None
SetEmissiveColor()
  • Modifies the emissive colour of the surface.
Parameters:AColor (Quantity_Color &) –
Return type:None
SetEnvReflexion()
Parameters:AValue (Standard_ShortReal) –
Return type:None
SetMaterialName()
  • The current matarial become a ‘UserDefined’ material. //! Set the name of the ‘UserDefined’ material.
Parameters:AName (char *) –
Return type:None
SetMaterialType()
  • Set MyMaterialType to the value of parameter <AType> //! TypeOfMaterial : MATERIAL_ASPECT //! MATERIAL_PHYSIC
Parameters:AType (Graphic3d_TypeOfMaterial) –
Return type:None
SetReflectionModeOff()
  • Deactivates the reflective properties of //! the surface <AType>. //! TypeOfReflection : TOR_AMBIENT //! TOR_DIFFUSE //! TOR_SPECULAR TOR_EMISSION 1, 2, 3 or 4 types of reflection can be set off for a given surface. Disabling diffuse and specular reflectance is useful for efficient visualization of large amounts of data as definition of normals for graphic primitives is not needed when only ‘all-directional’ reflectance is active. NOTE: Disabling all four reflection modes also turns off the following effects: 1. Lighting. Colors of primitives are not affected by the material properties when lighting is off. 2. Transparency.
Parameters:AType (Graphic3d_TypeOfReflection) –
Return type:None
SetReflectionModeOn()
  • Activates the reflective properties of the surface <AType>. //! TypeOfReflection : TOR_AMBIENT //! TOR_DIFFUSE //! TOR_SPECULAR TOR_EMISSION 1, 2, 3 or 4 types of reflection can be set for a given surface.
Parameters:AType (Graphic3d_TypeOfReflection) –
Return type:None
SetShininess()
  • Modifies the luminosity of the surface. Category: Methods to modify the class definition Warning: Raises MaterialDefinitionError if <AValue> is a //! negative value or greater than 1.0.
Parameters:AValue (float) –
Return type:None
SetSpecular()
  • Modifies the reflection properties of the surface. Category: Methods to modify the class definition Warning: Raises MaterialDefinitionError if <AValue> is a //! negative value or greater than 1.0.
Parameters:AValue (float) –
Return type:None
SetSpecularColor()
  • Modifies the specular colour of the surface.
Parameters:AColor (Quantity_Color &) –
Return type:None
SetTransparency()
  • Modifies the transparency coefficient of the surface. <AValue> = 0. opaque. (default) <AValue> = 1. transparent. Transparency is applicable to materials that have at least one of reflection modes (ambient, diffuse, specular or emissive) enabled. See also SetReflectionModeOn() and SetReflectionModeOff() methods. NOTE: In order for transparency specified through this method to take effect, it is necessary to enable transparency in the viewer. This can be done either directly - see Visual3d_ViewManager::SetTransparency(Standard_Boolean), or indirectly - by calling AIS_InteractiveObject::SetTransparency() before an object is added to an interactive context, or by calling AIS_InteractiveContext::SetTransparency() for a given interactive object already displayed. Category: Methods to modify the class definition Warning: Raises MaterialDefinitionError if <AValue> is a //! negative value or greater than 1.0.
Parameters:AValue (float) –
Return type:None
Shininess()
  • Returns the luminosity of the surface.
Return type:float
Specular()
  • Returns the reflection properties of the surface.
Return type:float
SpecularColor()
  • Returns the specular colour of the surface.
Return type:Quantity_Color
Transparency()
  • Returns the transparency coefficient of the surface.
Return type:float
thisown

The membership flag

OCC.Graphic3d.Graphic3d_MaterialAspect_MaterialFromName(*args)
  • Returns the material for specified name or Graphic3d_NOM_DEFAULT if name is unknown.
Parameters:theName (char *) –
Return type:Graphic3d_NameOfMaterial
OCC.Graphic3d.Graphic3d_MaterialAspect_MaterialType(*args)
  • Returns Standard_True if MyMaterialType equal the parameter AType, //! Standard_False otherwise.
Parameters:AType (Graphic3d_TypeOfMaterial) –
Return type:bool
  • Returns the type of the predefined material of rank <aRank> Trigger: when <aRank> is < 1 or > NumberOfMaterials.
Parameters:aRank (Standard_Integer) –
Return type:Graphic3d_TypeOfMaterial
OCC.Graphic3d.Graphic3d_MaterialAspect_NumberOfMaterials()
  • Returns the number of predefined textures.
Return type:int
class OCC.Graphic3d.Graphic3d_Plotter(*args, **kwargs)

Bases: OCC.MMgt.MMgt_TShared

BeginPlot()
  • Warning: Returns Standard_True if plotting is enabled in the view. //! Raises PlotterDefinitionError from Graphic3d //! if plotting has already started.
Parameters:aProjector (Handle_Graphic3d_DataStructureManager &) –
Return type:bool
Destroy()
  • Deletes the plotter <self>.
Return type:void
EndPlot()
  • Stops the plotting. Warning: Raises PlotterDefinitionError from Graphic3d //! if plotting has not started yet.
Return type:void
GetHandle()

Graphic3d_Plotter_GetHandle(Graphic3d_Plotter self) -> Handle_Graphic3d_Plotter

PlottingState()
Return type:bool
thisown

The membership flag

class OCC.Graphic3d.Graphic3d_SequenceNodeOfSequenceOfAddress(*args)

Bases: OCC.TCollection.TCollection_SeqNode

GetHandle()

Graphic3d_SequenceNodeOfSequenceOfAddress_GetHandle(Graphic3d_SequenceNodeOfSequenceOfAddress self) -> Handle_Graphic3d_SequenceNodeOfSequenceOfAddress

Value()
Return type:Standard_Address
thisown

The membership flag

class OCC.Graphic3d.Graphic3d_SequenceNodeOfSequenceOfGroup(*args)

Bases: OCC.TCollection.TCollection_SeqNode

GetHandle()

Graphic3d_SequenceNodeOfSequenceOfGroup_GetHandle(Graphic3d_SequenceNodeOfSequenceOfGroup self) -> Handle_Graphic3d_SequenceNodeOfSequenceOfGroup

Value()
Return type:Handle_Graphic3d_Group
thisown

The membership flag

class OCC.Graphic3d.Graphic3d_SequenceNodeOfSequenceOfStructure(*args)

Bases: OCC.TCollection.TCollection_SeqNode

GetHandle()

Graphic3d_SequenceNodeOfSequenceOfStructure_GetHandle(Graphic3d_SequenceNodeOfSequenceOfStructure self) -> Handle_Graphic3d_SequenceNodeOfSequenceOfStructure

Value()
Return type:Handle_Graphic3d_Structure
thisown

The membership flag

class OCC.Graphic3d.Graphic3d_SequenceOfAddress

Bases: OCC.TCollection.TCollection_BaseSequence

Append()
Parameters:
  • T (Standard_Address &) –
  • S (Graphic3d_SequenceOfAddress &) –
Return type:

None

Return type:

None

Assign()
Parameters:Other (Graphic3d_SequenceOfAddress &) –
Return type:Graphic3d_SequenceOfAddress
ChangeValue()
Parameters:Index (Standard_Integer) –
Return type:Standard_Address
Clear()
Return type:None
First()
Return type:Standard_Address
InsertAfter()
Parameters:
  • Index (Standard_Integer) –
  • T (Standard_Address &) –
  • Index
  • S (Graphic3d_SequenceOfAddress &) –
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • Index (Standard_Integer) –
  • T (Standard_Address &) –
  • Index
  • S (Graphic3d_SequenceOfAddress &) –
Return type:

None

Return type:

None

Last()
Return type:Standard_Address
Prepend()
Parameters:
  • T (Standard_Address &) –
  • S (Graphic3d_SequenceOfAddress &) –
Return type:

None

Return type:

None

Remove()
Parameters:
  • Index (Standard_Integer) –
  • FromIndex (Standard_Integer) –
  • ToIndex (Standard_Integer) –
Return type:

None

Return type:

None

Set()
Parameters:Other (Graphic3d_SequenceOfAddress &) –
Return type:Graphic3d_SequenceOfAddress
SetValue()
Parameters:
  • Index (Standard_Integer) –
  • I (Standard_Address &) –
Return type:

None

Split()
Parameters:
  • Index (Standard_Integer) –
  • Sub (Graphic3d_SequenceOfAddress &) –
Return type:

None

Value()
Parameters:Index (Standard_Integer) –
Return type:Standard_Address
thisown

The membership flag

class OCC.Graphic3d.Graphic3d_SequenceOfGroup

Bases: OCC.TCollection.TCollection_BaseSequence

Append()
Parameters:
  • T (Handle_Graphic3d_Group &) –
  • S (Graphic3d_SequenceOfGroup &) –
Return type:

None

Return type:

None

Assign()
Parameters:Other (Graphic3d_SequenceOfGroup &) –
Return type:Graphic3d_SequenceOfGroup
ChangeValue()
Parameters:Index (Standard_Integer) –
Return type:Handle_Graphic3d_Group
Clear()
Return type:None
First()
Return type:Handle_Graphic3d_Group
InsertAfter()
Parameters:
  • Index (Standard_Integer) –
  • T (Handle_Graphic3d_Group &) –
  • Index
  • S (Graphic3d_SequenceOfGroup &) –
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • Index (Standard_Integer) –
  • T (Handle_Graphic3d_Group &) –
  • Index
  • S (Graphic3d_SequenceOfGroup &) –
Return type:

None

Return type:

None

Last()
Return type:Handle_Graphic3d_Group
Prepend()
Parameters:
  • T (Handle_Graphic3d_Group &) –
  • S (Graphic3d_SequenceOfGroup &) –
Return type:

None

Return type:

None

Remove()
Parameters:
  • Index (Standard_Integer) –
  • FromIndex (Standard_Integer) –
  • ToIndex (Standard_Integer) –
Return type:

None

Return type:

None

Set()
Parameters:Other (Graphic3d_SequenceOfGroup &) –
Return type:Graphic3d_SequenceOfGroup
SetValue()
Parameters:
  • Index (Standard_Integer) –
  • I (Handle_Graphic3d_Group &) –
Return type:

None

Split()
Parameters:
  • Index (Standard_Integer) –
  • Sub (Graphic3d_SequenceOfGroup &) –
Return type:

None

Value()
Parameters:Index (Standard_Integer) –
Return type:Handle_Graphic3d_Group
thisown

The membership flag

class OCC.Graphic3d.Graphic3d_SequenceOfStructure

Bases: OCC.TCollection.TCollection_BaseSequence

Append()
Parameters:
  • T (Handle_Graphic3d_Structure &) –
  • S (Graphic3d_SequenceOfStructure &) –
Return type:

None

Return type:

None

Assign()
Parameters:Other (Graphic3d_SequenceOfStructure &) –
Return type:Graphic3d_SequenceOfStructure
ChangeValue()
Parameters:Index (Standard_Integer) –
Return type:Handle_Graphic3d_Structure
Clear()
Return type:None
First()
Return type:Handle_Graphic3d_Structure
InsertAfter()
Parameters:
  • Index (Standard_Integer) –
  • T (Handle_Graphic3d_Structure &) –
  • Index
  • S (Graphic3d_SequenceOfStructure &) –
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • Index (Standard_Integer) –
  • T (Handle_Graphic3d_Structure &) –
  • Index
  • S (Graphic3d_SequenceOfStructure &) –
Return type:

None

Return type:

None

Last()
Return type:Handle_Graphic3d_Structure
Prepend()
Parameters:
  • T (Handle_Graphic3d_Structure &) –
  • S (Graphic3d_SequenceOfStructure &) –
Return type:

None

Return type:

None

Remove()
Parameters:
  • Index (Standard_Integer) –
  • FromIndex (Standard_Integer) –
  • ToIndex (Standard_Integer) –
Return type:

None

Return type:

None

Set()
Parameters:Other (Graphic3d_SequenceOfStructure &) –
Return type:Graphic3d_SequenceOfStructure
SetValue()
Parameters:
  • Index (Standard_Integer) –
  • I (Handle_Graphic3d_Structure &) –
Return type:

None

Split()
Parameters:
  • Index (Standard_Integer) –
  • Sub (Graphic3d_SequenceOfStructure &) –
Return type:

None

Value()
Parameters:Index (Standard_Integer) –
Return type:Handle_Graphic3d_Structure
thisown

The membership flag

class OCC.Graphic3d.Graphic3d_SetIteratorOfSetOfGroup(*args)

Bases: object

Initialize()
Parameters:S (Graphic3d_SetOfGroup &) –
Return type:None
More()
Return type:bool
Next()
Return type:None
Value()
Return type:Handle_Graphic3d_Group
thisown

The membership flag

class OCC.Graphic3d.Graphic3d_SetListOfSetOfGroup

Bases: object

Append()
Parameters:
  • I (Handle_Graphic3d_Group &) –
  • I
  • theIt (Graphic3d_ListIteratorOfSetListOfSetOfGroup &) –
  • Other (Graphic3d_SetListOfSetOfGroup &) –
Return type:

None

Return type:

None

Return type:

None

Assign()
Parameters:Other (Graphic3d_SetListOfSetOfGroup &) –
Return type:None
Clear()
Return type:None
Extent()
Return type:int
First()
Return type:Handle_Graphic3d_Group
InsertAfter()
Parameters:
  • I (Handle_Graphic3d_Group &) –
  • It (Graphic3d_ListIteratorOfSetListOfSetOfGroup &) –
  • Other (Graphic3d_SetListOfSetOfGroup &) –
  • It
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • I (Handle_Graphic3d_Group &) –
  • It (Graphic3d_ListIteratorOfSetListOfSetOfGroup &) –
  • Other (Graphic3d_SetListOfSetOfGroup &) –
  • It
Return type:

None

Return type:

None

IsEmpty()
Return type:bool
Last()
Return type:Handle_Graphic3d_Group
Prepend()
Parameters:
  • I (Handle_Graphic3d_Group &) –
  • I
  • theIt (Graphic3d_ListIteratorOfSetListOfSetOfGroup &) –
  • Other (Graphic3d_SetListOfSetOfGroup &) –
Return type:

None

Return type:

None

Return type:

None

Remove()
Parameters:It (Graphic3d_ListIteratorOfSetListOfSetOfGroup &) –
Return type:None
RemoveFirst()
Return type:None
Set()
Parameters:Other (Graphic3d_SetListOfSetOfGroup &) –
Return type:None
thisown

The membership flag

class OCC.Graphic3d.Graphic3d_SetOfGroup

Bases: object

Add()
Parameters:T (Handle_Graphic3d_Group &) –
Return type:bool
Clear()
Return type:None
Contains()
Parameters:T (Handle_Graphic3d_Group &) –
Return type:bool
Difference()
Parameters:B (Graphic3d_SetOfGroup &) –
Return type:None
Extent()
Return type:int
Intersection()
Parameters:B (Graphic3d_SetOfGroup &) –
Return type:None
IsAProperSubset()
Parameters:S (Graphic3d_SetOfGroup &) –
Return type:bool
IsASubset()
Parameters:S (Graphic3d_SetOfGroup &) –
Return type:bool
IsEmpty()
Return type:bool
Remove()
Parameters:T (Handle_Graphic3d_Group &) –
Return type:bool
Union()
Parameters:B (Graphic3d_SetOfGroup &) –
Return type:None
thisown

The membership flag

class OCC.Graphic3d.Graphic3d_ShaderObject(*args, **kwargs)

Bases: OCC.Standard.Standard_Transient

static CreateFromFile(*args)
  • Creates new shader object from specified file.
Parameters:
  • theType (Graphic3d_TypeOfShaderObject) –
  • thePath (TCollection_AsciiString &) –
Return type:

Handle_Graphic3d_ShaderObject

static CreateFromSource(*args)
  • Creates new shader object from specified source.
Parameters:
  • theType (Graphic3d_TypeOfShaderObject) –
  • theSource (TCollection_AsciiString &) –
Return type:

Handle_Graphic3d_ShaderObject

GetId()
  • Returns unique ID used to manage resource in graphic driver.
Return type:TCollection_AsciiString
IsDone()
  • Checks if the shader object is valid or not.
Return type:bool
Path()
  • Returns the full path to the shader source.
Return type:OSD_Path
Source()
  • Returns the source code of the shader object.
Return type:TCollection_AsciiString
Type()
  • Returns type of the shader object.
Return type:Graphic3d_TypeOfShaderObject
thisown

The membership flag

OCC.Graphic3d.Graphic3d_ShaderObject_CreateFromFile(*args)
  • Creates new shader object from specified file.
Parameters:
  • theType (Graphic3d_TypeOfShaderObject) –
  • thePath (TCollection_AsciiString &) –
Return type:

Handle_Graphic3d_ShaderObject

OCC.Graphic3d.Graphic3d_ShaderObject_CreateFromSource(*args)
  • Creates new shader object from specified source.
Parameters:
  • theType (Graphic3d_TypeOfShaderObject) –
  • theSource (TCollection_AsciiString &) –
Return type:

Handle_Graphic3d_ShaderObject

class OCC.Graphic3d.Graphic3d_ShaderProgram(*args)

Bases: OCC.Standard.Standard_Transient

AttachShader()
  • Attaches shader object to the program object.
Parameters:theShader (Handle_Graphic3d_ShaderObject &) –
Return type:bool
ClearVariables()
  • Removes all custom uniform variables from the program.
Return type:None
Destroy()
  • Releases resources of program object.
Return type:None
DetachShader()
  • Detaches shader object from the program object.
Parameters:theShader (Handle_Graphic3d_ShaderObject &) –
Return type:bool
GetId()
  • Returns unique ID used to manage resource in graphic driver.
Return type:TCollection_AsciiString
IsDone()
  • Checks if the program object is valid or not.
Return type:bool
ShaderObjects()
  • Returns list of attached shader objects.
Return type:Graphic3d_ShaderObjectList
static ShadersFolder()
  • The path to GLSL programs determined from CSF_ShadersDirectory or CASROOT environment variables. returns the root folder with default GLSL programs.
Return type:TCollection_AsciiString
Variables()
  • Returns list of custom uniform variables.
Return type:Graphic3d_ShaderVariableList
thisown

The membership flag

OCC.Graphic3d.Graphic3d_ShaderProgram_ShadersFolder()
  • The path to GLSL programs determined from CSF_ShadersDirectory or CASROOT environment variables. returns the root folder with default GLSL programs.
Return type:TCollection_AsciiString
class OCC.Graphic3d.Graphic3d_ShaderVariable(*args, **kwargs)

Bases: OCC.Standard.Standard_Transient

IsDone()
  • Checks if the shader variable is valid or not.
Return type:bool
Name()
  • Returns name of shader variable.
Return type:TCollection_AsciiString
Value()
  • Returns interface of shader variable value.
Return type:Graphic3d_ValueInterface *
thisown

The membership flag

class OCC.Graphic3d.Graphic3d_StdMapNodeOfMapOfStructure(*args)

Bases: OCC.TCollection.TCollection_MapNode

GetHandle()

Graphic3d_StdMapNodeOfMapOfStructure_GetHandle(Graphic3d_StdMapNodeOfMapOfStructure self) -> Handle_Graphic3d_StdMapNodeOfMapOfStructure

Key()
Return type:Handle_Graphic3d_Structure
thisown

The membership flag

class OCC.Graphic3d.Graphic3d_Structure(*args)

Bases: OCC.MMgt.MMgt_TShared

static AcceptConnection(*args)
  • Returns Standard_True if the connection is possible between //! <AStructure1> and <AStructure2> without a creation //! of a cycle. //! It’s not possible to call the method //! AStructure1->Connect (AStructure2, TypeOfConnection) //! if //! - the set of all ancestors of <AStructure1> contains //! <AStructure1> and if the //! TypeOfConnection == TOC_DESCENDANT //! - the set of all descendants of <AStructure1> contains //! <AStructure2> and if the //! TypeOfConnection == TOC_ANCESTOR
Parameters:
  • AStructure1 (Handle_Graphic3d_Structure &) –
  • AStructure2 (Handle_Graphic3d_Structure &) –
  • AType (Graphic3d_TypeOfConnection) –
Return type:

bool

Ancestors()
  • Returns the group of structures to which <self> is connected.
Parameters:SG (Graphic3d_MapOfStructure &) –
Return type:None
CStructure()
  • Returns the c structure associated to <self>.
Return type:Graphic3d_CStructure *
Clear()
  • if WithDestruction == Standard_True then //! suppress all the groups of primitives in the structure. //! and it is mandatory to create a new group in <self>. //! if WithDestruction == Standard_False then //! clears all the groups of primitives in the structure. //! and all the groups are conserved and empty. //! They will be erased at the next screen update. //! The structure itself is conserved. //! The transformation and the attributes of <self> are conserved. //! The childs of <self> are conserved.
Parameters:WithDestruction (bool) – default value is Standard_True
Return type:void
  • if WithDestruction == Standard_True then //! suppress all the groups of primitives in the structure. //! and it is mandatory to create a new group in <self>. //! if WithDestruction == Standard_False then //! clears all the groups of primitives in the structure. //! and all the groups are conserved and empty. //! They will be erased at the next screen update. //! The structure itself is conserved. //! The transformation and the attributes of <self> are conserved. //! The childs of <self> are conserved.
Parameters:WithDestruction (bool) – default value is Standard_True
Return type:void
Composition()
  • Returns the type of composition applied to matrices //! of transformation of <self>.
Return type:Graphic3d_TypeOfComposition
Compute()
Return type:void
  • Returns the new Structure defined for the new visualization
Parameters:aProjector (Handle_Graphic3d_DataStructureManager &) –
Return type:Handle_Graphic3d_Structure
  • Returns the new Structure defined for the new visualization
Parameters:
  • aProjector (Handle_Graphic3d_DataStructureManager &) –
  • AMatrix (TColStd_Array2OfReal &) –
Return type:

Handle_Graphic3d_Structure

  • Returns the new Structure defined for the new visualization
Parameters:
  • aProjector (Handle_Graphic3d_DataStructureManager &) –
  • aStructure (Handle_Graphic3d_Structure &) –
Return type:

void

  • Returns the new Structure defined for the new visualization
Parameters:
  • aProjector (Handle_Graphic3d_DataStructureManager &) –
  • AMatrix (TColStd_Array2OfReal &) –
  • aStructure (Handle_Graphic3d_Structure &) –
Return type:

void

ComputeVisual()
Return type:Graphic3d_TypeOfStructure
Connect()
  • If Atype is TOC_DESCENDANT then add <AStructure> //! as a child structure of <self>. //! If Atype is TOC_ANCESTOR then add <AStructure> //! as a parent structure of <self>. //! The connection propagates Display, Highlight, Erase, //! Remove, and stacks the transformations. //! No connection if the graph of the structures //! contains a cycle and <WithCheck> is Standard_True;
Parameters:
  • AStructure (Handle_Graphic3d_Structure &) –
  • AType (Graphic3d_TypeOfConnection) –
  • WithCheck (bool) – default value is Standard_False
Return type:

None

  • If Atype is TOC_DESCENDANT then add <AStructure> //! as a child structure of <self>. //! If Atype is TOC_ANCESTOR then add <AStructure> //! as a parent structure of <self>. //! The connection propagates Display, Highlight, Erase, //! Remove, and stacks the transformations. //! No connection if the graph of the structures //! contains a cycle and <WithCheck> is Standard_True;
Parameters:
  • AStructure (Handle_Graphic3d_Structure &) –
  • AType (Graphic3d_TypeOfConnection) –
  • WithCheck (bool) – default value is Standard_False
Return type:

None

ContainsFacet()
  • Returns Standard_True if the structure <self> contains //! Polygons, Triangles or Quadrangles.
Return type:bool
Descendants()
  • Returns the group of structures connected to <self>.
Parameters:SG (Graphic3d_MapOfStructure &) –
Return type:None
Destroy()
  • Suppresses the structure <self>. //! It will be erased at the next screen update.
Return type:void
Disconnect()
  • Suppress the connection between <AStructure> and <self>.
Parameters:AStructure (Handle_Graphic3d_Structure &) –
Return type:None
DisconnectAll()
  • If Atype is TOC_DESCENDANT then suppress all //! the connections with the child structures of <self>. //! If Atype is TOC_ANCESTOR then suppress all //! the connections with the parent structures of <self>.
Parameters:AType (Graphic3d_TypeOfConnection) –
Return type:None
Display()
  • Displays the structure <self> in all the views of //! the visualiser.
Return type:void
  • Displays the structure <self> in all the views of //! the visualiser, while modifying its current priority. Note: Display Priorities Structure display priorities control the order in which structures are redrawn. When you display a structure, you specify its priority. The lower the value, the lower the display priority. When the display is regenerated, the structures with the lowest priority are drawn first. For structures with the same display priority, the order in which they were displayed determines the drawing order. Open CASCADE supports 11 structure display priorities, 0 to 10. Warning: Raises PriorityDefinitionError if <Priority> is //! greater than 10 or a negative value.
Parameters:Priority (Standard_Integer) –
Return type:None
DisplayPriority()
  • Returns the current display priority for the //! structure <self>.
Return type:int
Erase()
  • Erases the structure <self> in all the views //! of the visualiser.
Return type:void
FillArea3dAspect()
  • Returns the values of the current default attributes.
Return type:Handle_Graphic3d_AspectFillArea3d
GetClipPlanes()
  • Get clip planes slicing the structure on rendering. returns set of clip planes.
Return type:Graphic3d_SequenceOfHClipPlane
GetHandle()

Graphic3d_Structure_GetHandle(Graphic3d_Structure self) -> Handle_Graphic3d_Structure

GetZLayer()
  • Get Z layer ID of displayed structure. The method returns -1 if the structure has no ID (deleted from graphic driver).
Return type:int
GraphicClear()
  • Clears the structure <self>.
Parameters:WithDestruction (bool) –
Return type:None
GraphicConnect()
Parameters:ADaughter (Handle_Graphic3d_Structure &) –
Return type:None
GraphicDisconnect()
Parameters:ADaughter (Handle_Graphic3d_Structure &) –
Return type:None
GraphicHighlight()
  • Highlights the structure <self>.
Parameters:Method (Aspect_TypeOfHighlightMethod) –
Return type:None
GraphicTransform()
Parameters:AMatrix (TColStd_Array2OfReal &) –
Return type:None
GraphicUnHighlight()
  • Suppress the highlight for the structure <self>.
Return type:None
Groups()
  • Returns the groups sequence included in the structure <self> (internal storage).
Return type:Graphic3d_SequenceOfGroup
HLRValidation()
Return type:bool
Highlight()
  • Highlights the structure <self> in all the //! views of the visualiser, using the following methods: TOHM_COLOR = drawn in the highlight color //! (default white) //! TOHM_BLINK = blinking TOHM_BOUNDBOX = enclosed by the boundary box //! (default white)
Parameters:Method (Aspect_TypeOfHighlightMethod) –
Return type:None
HighlightColor()
  • Returns the highlight color for the Highlight method //! with the highlight method TOHM_COLOR or TOHM_BOUNDBOX.
Return type:Quantity_Color
Identification()
  • Returns the identification number of the structure <self>.
Return type:int
IsDeleted()
  • Returns Standard_True if the structure <self> is deleted. //! <self> is deleted after the call Remove (me).
Return type:bool
IsDisplayed()
  • Returns the display indicator for the structure <self>.
Return type:bool
IsEmpty()
  • Returns Standard_True if the structure <self> is empty. Warning: A structure is empty if : //! it do not have group or all the groups are empties //! and it do not have descendant or all the descendants //! are empties.
Return type:bool
IsHighlighted()
  • Returns the highlight indicator for the structure <self>.
Return type:bool
IsInfinite()
  • Returns Standard_True if the structure <self> is infinite.
Return type:bool
IsRotated()
  • Returns Standard_True if the structure <self> is rotated. //! <=> The transformation != Identity, != Scale, != Translation.
Return type:bool
IsSelectable()
  • Returns the detectability indicator for the structure <self>.
Return type:bool
IsTransformed()
  • Returns Standard_True if the structure <self> is transformed. //! <=> The transformation != Identity.
Return type:bool
IsVisible()
  • Returns the visibility indicator for the structure <self>.
Return type:bool
Line3dAspect()
  • Returns the values of the current default attributes.
Return type:Handle_Graphic3d_AspectLine3d
Marker3dAspect()
  • Returns the current group of graphic attributes used for 3d marker primitives.
Return type:Handle_Graphic3d_AspectMarker3d
MinMaxValues()
  • Returns the coordinates of the boundary box //! of the structure <self>. Warning: If the structure <self> is empty or infinite then : //! XMin = YMin = ZMin = RealFirst (). //! XMax = YMax = ZMax = RealLast ().
Parameters:
  • XMin (float &) –
  • YMin (float &) –
  • ZMin (float &) –
  • XMax (float &) –
  • YMax (float &) –
  • ZMax (float &) –
Return type:

None

static Network(*args)
  • Returns <ASet> the group of structures : //! - directly or indirectly connected to <AStructure> if the //! TypeOfConnection == TOC_DESCENDANT //! - to which <AStructure> is directly or indirectly connected //! if the TypeOfConnection == TOC_ANCESTOR
Parameters:
  • AStructure (Handle_Graphic3d_Structure &) –
  • AType (Graphic3d_TypeOfConnection) –
  • ASet (Graphic3d_MapOfStructure &) –
Return type:

void

NumberOfGroups()
  • Returns the current number of groups in the //! structure <self>.
Return type:int
Owner()
Return type:Standard_Address
Plot()
Parameters:aPlotter (Handle_Graphic3d_Plotter &) –
Return type:void
PrimitivesAspect()
  • Returns the current values of the default attributes.
Parameters:
  • CTXL (Handle_Graphic3d_AspectLine3d &) –
  • CTXT (Handle_Graphic3d_AspectText3d &) –
  • CTXM (Handle_Graphic3d_AspectMarker3d &) –
  • CTXF (Handle_Graphic3d_AspectFillArea3d &) –
Return type:

None

static PrintNetwork(*args)
  • Prints informations about the network associated //! with the structure <AStructure>.
Parameters:
  • AStructure (Handle_Graphic3d_Structure &) –
  • AType (Graphic3d_TypeOfConnection) –
Return type:

void

ReCompute()
  • Forces a new construction of the structure <self> //! if <self> is displayed and TOS_COMPUTED.
Return type:None
  • Forces a new construction of the structure <self> //! if <self> is displayed in <aProjetor> and TOS_COMPUTED.
Parameters:aProjector (Handle_Graphic3d_DataStructureManager &) –
Return type:None
Remove()
  • Suppress the structure <self>. //! It will be erased at the next screen update. Warning: No more graphic operations in <self> after this call. Category: Methods to modify the class definition
Return type:None
  • Suppress the adress <APtr> in the list //! of descendants or in the list of ancestors.
Parameters:
  • APtr (Standard_Address) –
  • AType (Graphic3d_TypeOfConnection) –
Return type:

None

ResetDisplayPriority()
  • Reset the current priority of the structure to the //! previous priority. Category: Methods to modify the class definition Warning: If <self> is displayed then the SetDisplayPriority //! method erase <self> and display <self> with the //! previous priority.
Return type:None
SetClipPlanes()
  • Changes a sequence of clip planes slicing the structure on rendering. @param thePlanes [in] the set of clip planes.
Parameters:thePlanes (Graphic3d_SequenceOfHClipPlane &) –
Return type:None
SetComputeVisual()
Parameters:AVisual (Graphic3d_TypeOfStructure) –
Return type:None
SetDisplayPriority()
  • Modifies the order of displaying the structure. //! Values are between 0 and 10. Structures are drawn according to their display priorities in ascending order. //! A structure of priority 10 is displayed the last and appears over the others. //! The default value is 5. Category: Methods to modify the class definition Warning: If <self> is displayed then the SetDisplayPriority //! method erase <self> and display <self> with the //! new priority. //! Raises PriorityDefinitionError if <Priority> is //! greater than 10 or a negative value.
Parameters:Priority (Standard_Integer) –
Return type:None
SetHLRValidation()
Parameters:AFlag (bool) –
Return type:None
SetHighlightColor()
  • Modifies the highlight color for the Highlight method //! with the highlight method TOHM_COLOR or TOHM_BOUNDBOX.
Parameters:AColor (Quantity_Color &) –
Return type:None
SetInfiniteState()
  • Modifies the coordinates of the boundary box //! of the structure <self>. //! if <AFlag> is Standard_True then <self> is infinite and //! the MinMaxValues method or the MinMaxCoord method return : //! XMin = YMin = ZMin = RealFirst (). //! XMax = YMax = ZMax = RealLast (). //! By default, <self> is not infinite but empty.
Parameters:AFlag (bool) –
Return type:None
SetManager()
  • Moves the graphic object <self> in the manager <AManager>. //! If <WithPropagation> is Standard_True then all the connected //! graphic objects to <self> are moved.
Parameters:
  • AManager (Handle_Graphic3d_StructureManager &) –
  • WithPropagation (bool) – default value is Standard_False
Return type:

None

  • Moves the graphic object <self> in the manager <AManager>. //! If <WithPropagation> is Standard_True then all the connected //! graphic objects to <self> are moved.
Parameters:
  • AManager (Handle_Graphic3d_StructureManager &) –
  • WithPropagation (bool) – default value is Standard_False
Return type:

None

SetOwner()
Parameters:Owner (Standard_Address) –
Return type:None
SetPick()
  • Modifies the detectability indicator to Standard_True //! or Standard_False for the structure <self>. //! The default value at the definition of <self> is //! Standard_True.
Parameters:AValue (bool) –
Return type:None
SetPrimitivesAspect()
  • Modifies the default attributes for lines //! in the structure <self>.
Parameters:CTX (Handle_Graphic3d_AspectLine3d &) –
Return type:None
  • Modifies the default attributes for faces //! in the structure <self>.
Parameters:CTX (Handle_Graphic3d_AspectFillArea3d &) –
Return type:None
  • Modifies the default attributes for text //! in the structure <self>.
Parameters:CTX (Handle_Graphic3d_AspectText3d &) –
Return type:None
  • Modifies the default attributes for markers //! in the structure <self>.
Parameters:CTX (Handle_Graphic3d_AspectMarker3d &) –
Return type:None
SetTransform()
  • Modifies the current local modelling transformation //! in the structure <self>. //! It is defined as a 4*4 real matrix. //! ——————- //! | a11 a12 a13 t1 | //! | a21 a22 a23 t2 | //! | a31 a32 a33 t3 | //! | 0 0 0 1 | //! ——————- //! TypeOfComposition : TOC_REPLACE //! TOC_POSTCONCATENATE Then the modified Local Modelling Transformation is composed with the current Global Modelling Transformation to create a new Composite Modelling Transformation. The compose type specifies the role of the current local modelling transformation (L) in composing the new value for the current local modelling transformation (L’), which is then combined with the current global modelling transforma- tion (G) to calculate the new composite modelling transfor- mation (C). TOC_REPLACE The transformation matrix (T) replaces the value of current local modelling transformation (L). //! L’ <- T //! C <- G x L’ TOC_POSTCONCATENATE The current local modelling transformation (L) is multiplied by the transformation matrix (T): //! L’ <- T x L //! C <- G x L’ Category: Methods to manage the structure transformation Warning: Raises TransformError if the matrix is not a 4x4 matrix.
Parameters:
  • AMatrix (TColStd_Array2OfReal &) –
  • AType (Graphic3d_TypeOfComposition) –
Return type:

None

SetTransformPersistence()
  • Modifies the current modelling transform persistence (pan, zoom or rotate)
Parameters:
  • AFlag (Graphic3d_TransModeFlags &) –
  • APoint (gp_Pnt) –
  • AFlag
Return type:

None

Return type:

None

SetVisible()
  • Modifies the visibility indicator to Standard_True or //! Standard_False for the structure <self>. //! The default value at the definition of <self> is //! Standard_True.
Parameters:AValue (bool) –
Return type:None
SetVisual()
  • Modifies the visualisation mode for the structure <self>.
Parameters:AVisual (Graphic3d_TypeOfStructure) –
Return type:void
SetZLayer()
  • Set Z layer ID for the structure. The Z layer mechanism allows to display structures presented in higher layers in overlay of structures in lower layers by switching off z buffer depth test between layers
Parameters:theLayerId (Standard_Integer) –
Return type:None
SetZoomLimit()
  • Modifies the minimum and maximum zoom coefficients //! for the structure <self>. //! The default value at the definition of <self> is unlimited. Category: Methods to modify the class definition Warning: Raises StructureDefinitionError if <LimitInf> is //! greater than <LimitSup> or if <LimitInf> or //! <LimitSup> is a negative value.
Parameters:
  • LimitInf (float) –
  • LimitSup (float) –
Return type:

None

Text3dAspect()
  • Returns the values of the current default attributes.
Return type:Handle_Graphic3d_AspectText3d
Transform()
  • Returns the transformation associated with //! the structure <self>.
Parameters:AMatrix (TColStd_Array2OfReal &) –
Return type:None
TransformPersistenceMode()
  • Get the current modelling transform persistence (pan, zoom or rotate)
Return type:Graphic3d_TransModeFlags
TransformPersistencePoint()
  • Get the current point of relative modelling transform persistence
Return type:gp_Pnt
static Transforms(*args)
  • Transforms <X>, <Y>, <Z> with the transformation <ATrsf>.
Parameters:
  • ATrsf (TColStd_Array2OfReal &) –
  • X (float) –
  • Y (float) –
  • Z (float) –
  • NewX (float &) –
  • NewY (float &) –
  • NewZ (float &) –
Return type:

void

  • Transforms <Coord> with the transformation <ATrsf>.
Parameters:
  • ATrsf (TColStd_Array2OfReal &) –
  • Coord (Graphic3d_Vector &) –
Return type:

Graphic3d_Vector

  • Transforms <Coord> with the transformation <ATrsf>.
Parameters:
  • ATrsf (TColStd_Array2OfReal &) –
  • Coord (Graphic3d_Vertex &) –
Return type:

Graphic3d_Vertex

UnHighlight()
  • Suppresses the highlight for the structure <self> //! in all the views of the visualiser.
Return type:None
Visual()
  • Returns the visualisation mode for the structure <self>.
Return type:Graphic3d_TypeOfStructure
thisown

The membership flag

class OCC.Graphic3d.Graphic3d_StructureManager(*args, **kwargs)

Bases: OCC.MMgt.MMgt_TShared

AddZLayer()
  • Add a new top-level Z layer and get its ID as <theLayerId> value. The method returns Standard_False if the layer can not be created. The z layer mechanism allows to display structures in higher layers in overlay of structures in lower layers.
Parameters:theLayerId (Standard_Integer &) –
Return type:bool
ChangeDisplayPriority()
  • Changes the display priority of the structure <AStructure>.
Parameters:
  • AStructure (Handle_Graphic3d_Structure &) –
  • OldPriority (Standard_Integer) –
  • NewPriority (Standard_Integer) –
Return type:

void

ChangeZLayer()
  • Change Z layer for structure. The z layer mechanism allows to display structures in higher layers in overlay of structures in lower layers.
Parameters:
  • theStructure (Handle_Graphic3d_Structure &) –
  • theLayerId (Standard_Integer) –
Return type:

void

Clear()
  • Clears the structure <AStructure>.
Parameters:
  • AStructure (Handle_Graphic3d_Structure &) –
  • WithDestruction (bool) –
Return type:

void

Connect()
  • Connects the structures <AMother> and <ADaughter>.
Parameters:
  • AMother (Handle_Graphic3d_Structure &) –
  • ADaughter (Handle_Graphic3d_Structure &) –
Return type:

void

static CurrentId()
  • Returns a current identifier available.
Return type:int
Destroy()
  • Deletes the manager <self>.
Return type:void
Disconnect()
  • Disconnects the structures <AMother> and <ADaughter>.
Parameters:
  • AMother (Handle_Graphic3d_Structure &) –
  • ADaughter (Handle_Graphic3d_Structure &) –
Return type:

void

Display()
  • Display the structure <AStructure>.
Parameters:AStructure (Handle_Graphic3d_Structure &) –
Return type:void
DisplayedStructures()
  • Returns the set of structures displayed in //! visualiser <self>.
Parameters:SG (Graphic3d_MapOfStructure &) –
Return type:None
Erase()
  • Erases the structure <AStructure>.
Parameters:AStructure (Handle_Graphic3d_Structure &) –
Return type:void
FillArea3dAspect()
  • Returns the values of the current default attributes.
Return type:Handle_Graphic3d_AspectFillArea3d
GetAllZLayers()
  • Return all Z layer ids in sequence ordered by level from lowest layer to highest. The first layer ID in sequence is the default layer that can’t be removed.
Parameters:theLayerSeq (TColStd_SequenceOfInteger &) –
Return type:void
GetHandle()

Graphic3d_StructureManager_GetHandle(Graphic3d_StructureManager self) -> Handle_Graphic3d_StructureManager

GetZLayer()
  • Get Z layer ID assigned to structure. If the structure has no layer ID (deleted from graphic driver), the method returns -1.
Parameters:theStructure (Handle_Graphic3d_Structure &) –
Return type:int
GraphicDriver()
  • Returns the graphic driver of <self>.
Return type:Handle_Graphic3d_GraphicDriver
Highlight()
  • Highlights the structure <AStructure>.
Parameters:
  • AStructure (Handle_Graphic3d_Structure &) –
  • AMethod (Aspect_TypeOfHighlightMethod) –
Return type:

void

HighlightedStructures()
  • Returns the set of highlighted structures //! in a visualiser <self>.
Parameters:SG (Graphic3d_MapOfStructure &) –
Return type:None
Identification()
  • Returns the identification number of the manager.
Return type:int
  • Returns the structure with the identification number <AId>.
Parameters:AId (Standard_Integer) –
Return type:Handle_Graphic3d_Structure
static Limit()
  • Returns maximum number of managers defineable.
Return type:int
Line3dAspect()
  • Returns the values of the current default attributes.
Return type:Handle_Graphic3d_AspectLine3d
Marker3dAspect()
  • Returns the values of the current default attributes.
Return type:Handle_Graphic3d_AspectMarker3d
MinMaxValues()
  • Returns the coordinates of the boundary box of all //! structures displayed in the manager <self>.
Parameters:
  • XMin (float &) –
  • YMin (float &) –
  • ZMin (float &) –
  • XMax (float &) –
  • YMax (float &) –
  • ZMax (float &) –
Return type:

None

PickStructures()
  • Returns the set of detectable structures //! in a visualiser <self>.
Parameters:SG (Graphic3d_MapOfStructure &) –
Return type:None
PrimitivesAspect()
  • Returns the values of the current default attributes.
Parameters:
  • CTXL (Handle_Graphic3d_AspectLine3d &) –
  • CTXT (Handle_Graphic3d_AspectText3d &) –
  • CTXM (Handle_Graphic3d_AspectMarker3d &) –
  • CTXF (Handle_Graphic3d_AspectFillArea3d &) –
Return type:

None

ReCompute()
  • Forces a new construction of the structure <AStructure> //! if <AStructure> is displayed and TOS_COMPUTED.
Parameters:AStructure (Handle_Graphic3d_Structure &) –
Return type:void
  • Forces a new construction of the structure <AStructure> //! if <AStructure> is displayed in <AProjector> and TOS_COMPUTED.
Parameters:
  • AStructure (Handle_Graphic3d_Structure &) –
  • AProjector (Handle_Graphic3d_DataStructureManager &) –
Return type:

void

RecomputeStructures()
Return type:None
RemoveZLayer()
  • Remove Z layer with ID <theLayerId>. Method returns Standard_False if the layer can not be removed or doesn’t exists. By default, there is always a default bottom-level layer that can’t be removed.
Parameters:theLayerId (Standard_Integer) –
Return type:bool
SetPrimitivesAspect()
  • Modifies the default attributes for lines //! in the visualiser.
Parameters:CTX (Handle_Graphic3d_AspectLine3d &) –
Return type:None
  • Modifies the default attributes for faces //! in the visualiser.
Parameters:CTX (Handle_Graphic3d_AspectFillArea3d &) –
Return type:None
  • Modifies the default attributes for text //! in the visualiser.
Parameters:CTX (Handle_Graphic3d_AspectText3d &) –
Return type:None
  • Modifies the default attributes for markers //! in the visualiser.
Parameters:CTX (Handle_Graphic3d_AspectMarker3d &) –
Return type:None
SetTransform()
  • Transforms the structure <AStructure>.
Parameters:
  • AStructure (Handle_Graphic3d_Structure &) –
  • ATrsf (TColStd_Array2OfReal &) –
Return type:

void

SetUpdateMode()
  • Modifies the screen update mode. //! TOU_ASAP as soon as possible //! TOU_WAIT on demand (with the Update function) Note : Dynamic Operations and Update Mode Use SetUpdateMode to control when changes to the display are made. Use one of the following functions to update one or more views: - Update all views of the viewer: Visual3d_ViewManager::Update () - Update one view of the viewer: Visual3d_View::Update () Use one of the following functions to update the entire display: - Redraw all structures in all views: Visual3d_ViewManager::Redraw () - Redraw all structures in one view: Visual3d_View::Redraw () Update)
Parameters:AType (Aspect_TypeOfUpdate) –
Return type:None
SetZLayerSettings()
  • Sets the settings for a single Z layer for all managed views.
Parameters:
  • theLayerId (Standard_Integer) –
  • theSettings (Graphic3d_ZLayerSettings) –
Return type:

void

Text3dAspect()
  • Returns the values of the current default attributes.
Return type:Handle_Graphic3d_AspectText3d
UnHighlight()
  • Suppresses the highlighting on all the structures in <self>.
Return type:void
  • Suppress the highlighting on the structure <AStructure>.
Parameters:AStructure (Handle_Graphic3d_Structure &) –
Return type:void
Update()
  • Updates screen in function of modifications of //! the structures. Warning: Not necessary if the update mode is TOU_ASAP.
Return type:void
UpdateMode()
  • Returns the screen update mode. //! TOU_ASAP as soon as possible //! TOU_WAIT on demand (Update)
Return type:Aspect_TypeOfUpdate
ZLayerSettings()
  • Returns the settings of a single Z layer.
Parameters:theLayerId (Standard_Integer) –
Return type:Graphic3d_ZLayerSettings
thisown

The membership flag

OCC.Graphic3d.Graphic3d_StructureManager_CurrentId()
  • Returns a current identifier available.
Return type:int
OCC.Graphic3d.Graphic3d_StructureManager_Limit()
  • Returns maximum number of managers defineable.
Return type:int
OCC.Graphic3d.Graphic3d_Structure_AcceptConnection(*args)
  • Returns Standard_True if the connection is possible between //! <AStructure1> and <AStructure2> without a creation //! of a cycle. //! It’s not possible to call the method //! AStructure1->Connect (AStructure2, TypeOfConnection) //! if //! - the set of all ancestors of <AStructure1> contains //! <AStructure1> and if the //! TypeOfConnection == TOC_DESCENDANT //! - the set of all descendants of <AStructure1> contains //! <AStructure2> and if the //! TypeOfConnection == TOC_ANCESTOR
Parameters:
  • AStructure1 (Handle_Graphic3d_Structure &) –
  • AStructure2 (Handle_Graphic3d_Structure &) –
  • AType (Graphic3d_TypeOfConnection) –
Return type:

bool

OCC.Graphic3d.Graphic3d_Structure_Network(*args)
  • Returns <ASet> the group of structures : //! - directly or indirectly connected to <AStructure> if the //! TypeOfConnection == TOC_DESCENDANT //! - to which <AStructure> is directly or indirectly connected //! if the TypeOfConnection == TOC_ANCESTOR
Parameters:
  • AStructure (Handle_Graphic3d_Structure &) –
  • AType (Graphic3d_TypeOfConnection) –
  • ASet (Graphic3d_MapOfStructure &) –
Return type:

void

OCC.Graphic3d.Graphic3d_Structure_PrintNetwork(*args)
  • Prints informations about the network associated //! with the structure <AStructure>.
Parameters:
  • AStructure (Handle_Graphic3d_Structure &) –
  • AType (Graphic3d_TypeOfConnection) –
Return type:

void

OCC.Graphic3d.Graphic3d_Structure_Transforms(*args)
  • Transforms <X>, <Y>, <Z> with the transformation <ATrsf>.
Parameters:
  • ATrsf (TColStd_Array2OfReal &) –
  • X (float) –
  • Y (float) –
  • Z (float) –
  • NewX (float &) –
  • NewY (float &) –
  • NewZ (float &) –
Return type:

void

  • Transforms <Coord> with the transformation <ATrsf>.
Parameters:
  • ATrsf (TColStd_Array2OfReal &) –
  • Coord (Graphic3d_Vector &) –
Return type:

Graphic3d_Vector

  • Transforms <Coord> with the transformation <ATrsf>.
Parameters:
  • ATrsf (TColStd_Array2OfReal &) –
  • Coord (Graphic3d_Vertex &) –
Return type:

Graphic3d_Vertex

class OCC.Graphic3d.Graphic3d_Texture1D(*args, **kwargs)

Bases: OCC.Graphic3d.Graphic3d_TextureMap

GetHandle()

Graphic3d_Texture1D_GetHandle(Graphic3d_Texture1D self) -> Handle_Graphic3d_Texture1D

Name()
  • Returns the name of the predefined textures or NOT_1D_UNKNOWN when the name is given as a filename.
Return type:Graphic3d_NameOfTexture1D
static NumberOfTextures()
  • Returns the number of predefined textures.
Return type:int
static TextureName(*args)
  • Returns the name of the predefined texture of rank <aRank>
Parameters:aRank (Standard_Integer) –
Return type:TCollection_AsciiString
thisown

The membership flag

OCC.Graphic3d.Graphic3d_Texture1D_NumberOfTextures()
  • Returns the number of predefined textures.
Return type:int
OCC.Graphic3d.Graphic3d_Texture1D_TextureName(*args)
  • Returns the name of the predefined texture of rank <aRank>
Parameters:aRank (Standard_Integer) –
Return type:TCollection_AsciiString
class OCC.Graphic3d.Graphic3d_Texture1Dmanual(*args)

Bases: OCC.Graphic3d.Graphic3d_Texture1D

GetHandle()

Graphic3d_Texture1Dmanual_GetHandle(Graphic3d_Texture1Dmanual self) -> Handle_Graphic3d_Texture1Dmanual

thisown

The membership flag

class OCC.Graphic3d.Graphic3d_Texture1Dsegment(*args)

Bases: OCC.Graphic3d.Graphic3d_Texture1D

GetHandle()

Graphic3d_Texture1Dsegment_GetHandle(Graphic3d_Texture1Dsegment self) -> Handle_Graphic3d_Texture1Dsegment

Segment()
  • Returns the values of the current segment X1, Y1, Z1 , X2, Y2, Z2.
Parameters:
  • theX1 (Standard_ShortReal &) –
  • theY1 (Standard_ShortReal &) –
  • theZ1 (Standard_ShortReal &) –
  • theX2 (Standard_ShortReal &) –
  • theY2 (Standard_ShortReal &) –
  • theZ2 (Standard_ShortReal &) –
Return type:

None

SetSegment()
  • Sets the texture application bounds. Defines the way the texture is stretched across facets. Default values are <0.0, 0.0, 0.0> , <0.0, 0.0, 1.0>
Parameters:
  • theX1 (Standard_ShortReal) –
  • theY1 (Standard_ShortReal) –
  • theZ1 (Standard_ShortReal) –
  • theX2 (Standard_ShortReal) –
  • theY2 (Standard_ShortReal) –
  • theZ2 (Standard_ShortReal) –
Return type:

None

thisown

The membership flag

class OCC.Graphic3d.Graphic3d_Texture2D(*args, **kwargs)

Bases: OCC.Graphic3d.Graphic3d_TextureMap

GetHandle()

Graphic3d_Texture2D_GetHandle(Graphic3d_Texture2D self) -> Handle_Graphic3d_Texture2D

Name()
  • Returns the name of the predefined textures or NOT_2D_UNKNOWN when the name is given as a filename.
Return type:Graphic3d_NameOfTexture2D
static NumberOfTextures()
  • Returns the number of predefined textures.
Return type:int
static TextureName(*args)
  • Returns the name of the predefined texture of rank <aRank>
Parameters:theRank (Standard_Integer) –
Return type:TCollection_AsciiString
thisown

The membership flag

OCC.Graphic3d.Graphic3d_Texture2D_NumberOfTextures()
  • Returns the number of predefined textures.
Return type:int
OCC.Graphic3d.Graphic3d_Texture2D_TextureName(*args)
  • Returns the name of the predefined texture of rank <aRank>
Parameters:theRank (Standard_Integer) –
Return type:TCollection_AsciiString
class OCC.Graphic3d.Graphic3d_Texture2Dmanual(*args)

Bases: OCC.Graphic3d.Graphic3d_Texture2D

GetHandle()

Graphic3d_Texture2Dmanual_GetHandle(Graphic3d_Texture2Dmanual self) -> Handle_Graphic3d_Texture2Dmanual

thisown

The membership flag

class OCC.Graphic3d.Graphic3d_Texture2Dplane(*args)

Bases: OCC.Graphic3d.Graphic3d_Texture2D

GetHandle()

Graphic3d_Texture2Dplane_GetHandle(Graphic3d_Texture2Dplane self) -> Handle_Graphic3d_Texture2Dplane

Plane()
  • Returns the current texture plane name or NOTP_UNKNOWN when the plane is user defined.
Return type:Graphic3d_NameOfTexturePlane
PlaneS()
  • Returns the current texture plane S equation
Parameters:
  • A (Standard_ShortReal &) –
  • B (Standard_ShortReal &) –
  • C (Standard_ShortReal &) –
  • D (Standard_ShortReal &) –
Return type:

None

PlaneT()
  • Returns the current texture plane T equation
Parameters:
  • A (Standard_ShortReal &) –
  • B (Standard_ShortReal &) –
  • C (Standard_ShortReal &) –
  • D (Standard_ShortReal &) –
Return type:

None

Rotation()
  • Returns the current texture rotation angle
Parameters:theVal (Standard_ShortReal &) –
Return type:None
ScaleS()
  • Returns the current texture S scale value
Parameters:theVal (Standard_ShortReal &) –
Return type:None
ScaleT()
  • Returns the current texture T scale value
Parameters:theVal (Standard_ShortReal &) –
Return type:None
SetPlane()
  • Defines the texture projection plane for both S and T texture coordinate default is NOTP_XY meaning: <1.0, 0.0, 0.0, 0.0> for S and <0.0, 1.0, 0.0, 0.0> for T
Parameters:thePlane (Graphic3d_NameOfTexturePlane) –
Return type:None
SetPlaneS()
  • Defines the texture projection plane for texture coordinate S default is <1.0, 0.0, 0.0, 0.0>
Parameters:
  • A (Standard_ShortReal) –
  • B (Standard_ShortReal) –
  • C (Standard_ShortReal) –
  • D (Standard_ShortReal) –
Return type:

None

SetPlaneT()
  • Defines the texture projection plane for texture coordinate T default is <0.0, 1.0, 0.0, 0.0>
Parameters:
  • A (Standard_ShortReal) –
  • B (Standard_ShortReal) –
  • C (Standard_ShortReal) –
  • D (Standard_ShortReal) –
Return type:

None

SetRotation()
  • Sets the rotation angle of the whole texture. the same result might be achieved by recomputing the S and T plane equation but it’s not the easiest way... the angle is expressed in degrees default is 0.0
Parameters:theVal (Standard_ShortReal) –
Return type:None
SetScaleS()
  • Defines the texture scale for the S texture coordinate much easier than recomputing the S plane equation but the result is the same default to 1.0
Parameters:theVal (Standard_ShortReal) –
Return type:None
SetScaleT()
  • Defines the texture scale for the T texture coordinate much easier than recompution the T plane equation but the result is the same default to 1.0
Parameters:theVal (Standard_ShortReal) –
Return type:None
SetTranslateS()
  • Defines the texture translation for the S texture coordinate you can obtain the same effect by modifying the S plane equation but its not easier. default to 0.0
Parameters:theVal (Standard_ShortReal) –
Return type:None
SetTranslateT()
  • Defines the texture translation for the T texture coordinate you can obtain the same effect by modifying the T plane equation but its not easier. default to 0.0
Parameters:theVal (Standard_ShortReal) –
Return type:None
TranslateS()
  • Returns the current texture S translation value
Parameters:theVal (Standard_ShortReal &) –
Return type:None
TranslateT()
  • Returns the current texture T translation value
Parameters:theVal (Standard_ShortReal &) –
Return type:None
thisown

The membership flag

class OCC.Graphic3d.Graphic3d_TextureEnv(*args)

Bases: OCC.Graphic3d.Graphic3d_TextureRoot

GetHandle()

Graphic3d_TextureEnv_GetHandle(Graphic3d_TextureEnv self) -> Handle_Graphic3d_TextureEnv

Name()
  • Returns the name of the predefined textures or NOT_ENV_UNKNOWN when the name is given as a filename.
Return type:Graphic3d_NameOfTextureEnv
static NumberOfTextures()
  • Returns the number of predefined textures.
Return type:int
static TextureName(*args)
  • Returns the name of the predefined texture of rank <aRank>
Parameters:theRank (Standard_Integer) –
Return type:TCollection_AsciiString
thisown

The membership flag

OCC.Graphic3d.Graphic3d_TextureEnv_NumberOfTextures()
  • Returns the number of predefined textures.
Return type:int
OCC.Graphic3d.Graphic3d_TextureEnv_TextureName(*args)
  • Returns the name of the predefined texture of rank <aRank>
Parameters:theRank (Standard_Integer) –
Return type:TCollection_AsciiString
class OCC.Graphic3d.Graphic3d_TextureMap(*args, **kwargs)

Bases: OCC.Graphic3d.Graphic3d_TextureRoot

AnisoFilter()
  • returns level of anisontropy texture filter. Default value is Graphic3d_LOTA_OFF.
Return type:Graphic3d_LevelOfTextureAnisotropy
DisableModulate()
  • disable texture modulate mode. the image is directly decal on the surface.
Return type:None
DisableRepeat()
  • use this methods if you want to disable texture repetition on your objects.
Return type:None
DisableSmooth()
  • disable texture smoothing
Return type:None
EnableModulate()
  • enable texture modulate mode. the image is modulate with the shading of the surface.
Return type:None
EnableRepeat()
  • use this methods if you want to enable texture repetition on your objects.
Return type:None
EnableSmooth()
  • enable texture smoothing
Return type:None
GetHandle()

Graphic3d_TextureMap_GetHandle(Graphic3d_TextureMap self) -> Handle_Graphic3d_TextureMap

IsModulate()
  • Returns True if the texture is modulate.
Return type:bool
IsRepeat()
  • Returns True if the texture repeat is enable.
Return type:bool
IsSmoothed()
  • Returns True if the texture is smoothed.
Return type:bool
SetAnisoFilter()
  • @param theLevel level of anisontropy texture filter.
Parameters:theLevel (Graphic3d_LevelOfTextureAnisotropy) –
Return type:None
thisown

The membership flag

class OCC.Graphic3d.Graphic3d_TextureParams

Bases: OCC.Standard.Standard_Transient

AnisoFilter()
  • returns level of anisontropy texture filter. Default value is Graphic3d_LOTA_OFF.
Return type:Graphic3d_LevelOfTextureAnisotropy
Destroy()
Return type:None
Filter()
  • returns texture interpolation filter. Default value is Graphic3d_TOTF_NEAREST.
Return type:Graphic3d_TypeOfTextureFilter
GenMode()
  • returns texture coordinates generation mode. Default value is Graphic3d_TOTM_MANUAL.
Return type:Graphic3d_TypeOfTextureMode
GenPlaneS()
  • returns texture coordinates generation plane S.
Return type:Graphic3d_Vec4
GenPlaneT()
  • returns texture coordinates generation plane T.
Return type:Graphic3d_Vec4
GetHandle()

Graphic3d_TextureParams_GetHandle(Graphic3d_TextureParams self) -> Handle_Graphic3d_TextureParams

IsModulate()
  • returns True if the texture is modulate. Default value is False.
Return type:bool
IsRepeat()
  • returns True if the texture repeat is enabled. Default value is False.
Return type:bool
Rotation()
  • returns rotation angle in degrees Default value is 0.
Return type:Standard_ShortReal
Scale()
  • returns scale factor Default value is no scaling (1.0; 1.0).
Return type:Graphic3d_Vec2
SetAnisoFilter()
  • @param theLevel level of anisontropy texture filter.
Parameters:theLevel (Graphic3d_LevelOfTextureAnisotropy) –
Return type:None
SetFilter()
  • @param theFilter texture interpolation filter.
Parameters:theFilter (Graphic3d_TypeOfTextureFilter) –
Return type:None
SetGenMode()
  • Setup texture coordinates generation mode.
Parameters:
  • theMode (Graphic3d_TypeOfTextureMode) –
  • thePlaneS (Graphic3d_Vec4) –
  • thePlaneT (Graphic3d_Vec4) –
Return type:

None

SetModulate()
  • @param theToModulate turn modulation on/off.
Parameters:theToModulate (bool) –
Return type:None
SetRepeat()
  • @param theToRepeat turn texture repeat mode ON or OFF (clamping).
Parameters:theToRepeat (bool) –
Return type:None
SetRotation()
  • @param theAngleDegrees rotation angle.
Parameters:theAngleDegrees (Standard_ShortReal) –
Return type:None
SetScale()
  • @param theScale scale factor.
Parameters:theScale (Graphic3d_Vec2) –
Return type:None
SetTranslation()
  • @param theVec translation vector.
Parameters:theVec (Graphic3d_Vec2) –
Return type:None
Translation()
  • returns translation vector Default value is no translation (0.0; 0.0).
Return type:Graphic3d_Vec2
thisown

The membership flag

class OCC.Graphic3d.Graphic3d_TextureRoot(*args, **kwargs)

Bases: OCC.MMgt.MMgt_TShared

Destroy()
Return type:None
GetHandle()

Graphic3d_TextureRoot_GetHandle(Graphic3d_TextureRoot self) -> Handle_Graphic3d_TextureRoot

GetId()
  • This ID will be used to manage resource in graphic driver. . Default implementation generates unique ID although inheritors may re-initialize it. . Multiple Graphic3d_TextureRoot instancies with same ID will be treated as single texture with different parameters to optimize memory usage though this will be more natural to use same instance of Graphic3d_TextureRoot when possible. . Notice that inheritor may set this ID to empty string. In this case independent graphical resource will be created for each instance of Graphic3d_AspectFillArea3d where texture will be used. . returns texture identifier.
Return type:TCollection_AsciiString
GetImage()
  • This method will be called by graphic driver each time when texture resource should be created. Default constructors allow defining the texture source as path to texture image or directly as pixmap. If the source is defined as path, then the image will be dynamically loaded when this method is called (and no copy will be preserved in this class instance). Inheritors may dynamically generate the image. Notice, image data should be in Bottom-Up order (see Image_PixMap::IsTopDown())! returns the image for texture.
Return type:Image_PixMap_Handle
GetParams()
  • returns low-level texture parameters
Return type:Handle_Graphic3d_TextureParams
IsDone()
  • Checks if a texture class is valid or not. returns true if the construction of the class is correct
Return type:bool
Path()
  • Returns the full path of the defined texture. It could be empty path if GetImage() is overridden to load image not from file.
Return type:OSD_Path
static TexturesFolder()
  • The path to textures determined from CSF_MDTVTexturesDirectory or CASROOT environment variables. returns the root folder with default textures.
Return type:TCollection_AsciiString
Type()
  • returns the texture type.
Return type:Graphic3d_TypeOfTexture
thisown

The membership flag

OCC.Graphic3d.Graphic3d_TextureRoot_TexturesFolder()
  • The path to textures determined from CSF_MDTVTexturesDirectory or CASROOT environment variables. returns the root folder with default textures.
Return type:TCollection_AsciiString
class OCC.Graphic3d.Graphic3d_ValueInterface(*args, **kwargs)

Bases: object

TypeID()
  • Returns unique identifier of value type.
Return type:Standard_Size
thisown

The membership flag

class OCC.Graphic3d.Graphic3d_Vector(*args)

Bases: object

Coord()
  • Returns the coordinates of the vector <self>.
Parameters:
  • AX (float &) –
  • AY (float &) –
  • AZ (float &) –
Return type:

None

IsNormalized()
  • Returns Standard_True if <self> has length 1.
Return type:bool
static IsParallel(*args)
  • Returns Standard_True if the vector <AV1> and //! <AV2> are parallel.
Parameters:
  • AV1 (Graphic3d_Vector &) –
  • AV2 (Graphic3d_Vector &) –
Return type:

bool

LengthZero()
  • Returns Standard_True if <self> has length zero.
Return type:bool
Normalize()
  • Normalises <self>. Category: Methods to modify the class definition Warning: Raises VectorError if <self> is null.
Return type:None
static NormeOf(*args)
  • Returns the norm of the vector <AX>, <AY>, <AZ>.
Parameters:
  • AX (float) –
  • AY (float) –
  • AZ (float) –
Return type:

float

  • Returns the norm of the vector <AVector>.
Parameters:AVector (Graphic3d_Vector &) –
Return type:float
SetCoord()
  • Modifies the coordinates of the vector <self>.
Parameters:
  • Xnew (float) –
  • Ynew (float) –
  • Znew (float) –
Return type:

None

SetXCoord()
  • Modifies the X coordinate of the vector <self>.
Parameters:Xnew (float) –
Return type:None
SetYCoord()
  • Modifies the Y coordinate of the vector <self>.
Parameters:Ynew (float) –
Return type:None
SetZCoord()
  • Modifies the Z coordinate of the vector <self>.
Parameters:Znew (float) –
Return type:None
X()
  • Returns the X coordinates of the vector <self>.
Return type:float
Y()
  • Returns the Y coordinate of the vector <self>.
Return type:float
Z()
  • Returns the Z coordinate of the vector <self>.
Return type:float
thisown

The membership flag

OCC.Graphic3d.Graphic3d_Vector_IsParallel(*args)
  • Returns Standard_True if the vector <AV1> and //! <AV2> are parallel.
Parameters:
  • AV1 (Graphic3d_Vector &) –
  • AV2 (Graphic3d_Vector &) –
Return type:

bool

OCC.Graphic3d.Graphic3d_Vector_NormeOf(*args)
  • Returns the norm of the vector <AX>, <AY>, <AZ>.
Parameters:
  • AX (float) –
  • AY (float) –
  • AZ (float) –
Return type:

float

  • Returns the norm of the vector <AVector>.
Parameters:AVector (Graphic3d_Vector &) –
Return type:float
class OCC.Graphic3d.Graphic3d_Vertex(*args)

Bases: object

Coord()
  • Returns the coordinates of the point <self>.
Parameters:
  • AX (Standard_ShortReal &) –
  • AY (Standard_ShortReal &) –
  • AZ (Standard_ShortReal &) –
Return type:

None

  • Returns the coordinates of the point <self>.
Parameters:
  • AX (float &) –
  • AY (float &) –
  • AZ (float &) –
Return type:

None

Distance()
  • Returns the distance between <AV1> and <AV2>.
Parameters:AOther (Graphic3d_Vertex &) –
Return type:Standard_ShortReal
SetCoord()
  • Modifies the coordinates of the point <self>.
Parameters:
  • AX (Standard_ShortReal) –
  • AY (Standard_ShortReal) –
  • AZ (Standard_ShortReal) –
Return type:

None

  • Modifies the coordinates of the point <self>.
Parameters:
  • AX (float) –
  • AY (float) –
  • AZ (float) –
Return type:

None

X()
  • Returns the X coordinates of the point <self>.
Return type:Standard_ShortReal
Y()
  • Returns the Y coordinate of the point <self>.
Return type:Standard_ShortReal
Z()
  • Returns the Z coordinate of the point <self>.
Return type:Standard_ShortReal
thisown

The membership flag

class OCC.Graphic3d.Graphic3d_ZLayerSettings

Bases: object

DisableSetting()
  • Disables theSetting
Parameters:theSetting (Graphic3d_ZLayerSetting) –
Return type:None
EnableSetting()
  • Enables theSetting
Parameters:theSetting (Graphic3d_ZLayerSetting) –
Return type:None
IsSettingEnabled()
  • Returns true if theSetting is enabled.
Parameters:theSetting (Graphic3d_ZLayerSetting) –
Return type:bool
SetDepthOffsetNegative()
  • Sets minimal possible negative depth offset. Access DepthOffsetFactor and DepthOffsetUnits values for manual offset control.
Return type:None
SetDepthOffsetPositive()
  • Sets minimal possible positive depth offset. Access DepthOffsetFactor and DepthOffsetUnits values for manual offset control.
Return type:None
thisown

The membership flag

class OCC.Graphic3d.Handle_Graphic3d_ArrayOfPoints(*args)

Bases: OCC.Graphic3d.Handle_Graphic3d_ArrayOfPrimitives

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Graphic3d.Handle_Graphic3d_ArrayOfPolygons(*args)

Bases: OCC.Graphic3d.Handle_Graphic3d_ArrayOfPrimitives

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Graphic3d.Handle_Graphic3d_ArrayOfPolylines(*args)

Bases: OCC.Graphic3d.Handle_Graphic3d_ArrayOfPrimitives

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Graphic3d.Handle_Graphic3d_ArrayOfPrimitives(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Graphic3d.Handle_Graphic3d_ArrayOfQuadrangleStrips(*args)

Bases: OCC.Graphic3d.Handle_Graphic3d_ArrayOfPrimitives

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Graphic3d.Handle_Graphic3d_ArrayOfQuadrangles(*args)

Bases: OCC.Graphic3d.Handle_Graphic3d_ArrayOfPrimitives

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Graphic3d.Handle_Graphic3d_ArrayOfSegments(*args)

Bases: OCC.Graphic3d.Handle_Graphic3d_ArrayOfPrimitives

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Graphic3d.Handle_Graphic3d_ArrayOfTriangleFans(*args)

Bases: OCC.Graphic3d.Handle_Graphic3d_ArrayOfPrimitives

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Graphic3d.Handle_Graphic3d_ArrayOfTriangleStrips(*args)

Bases: OCC.Graphic3d.Handle_Graphic3d_ArrayOfPrimitives

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Graphic3d.Handle_Graphic3d_ArrayOfTriangles(*args)

Bases: OCC.Graphic3d.Handle_Graphic3d_ArrayOfPrimitives

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Graphic3d.Handle_Graphic3d_AspectFillArea3d(*args)

Bases: OCC.Aspect.Handle_Aspect_AspectFillArea

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Graphic3d.Handle_Graphic3d_AspectLine3d(*args)

Bases: OCC.Aspect.Handle_Aspect_AspectLine

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Graphic3d.Handle_Graphic3d_AspectMarker3d(*args)

Bases: OCC.Aspect.Handle_Aspect_AspectMarker

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Graphic3d.Handle_Graphic3d_AspectText3d(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Graphic3d.Handle_Graphic3d_DataStructureManager(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Graphic3d.Handle_Graphic3d_GraphicDriver(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Graphic3d.Handle_Graphic3d_Group(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Graphic3d.Handle_Graphic3d_HSequenceOfGroup(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Graphic3d.Handle_Graphic3d_HSequenceOfStructure(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Graphic3d.Handle_Graphic3d_HSetOfGroup(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Graphic3d.Handle_Graphic3d_ListNodeOfListOfPArray(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Graphic3d.Handle_Graphic3d_ListNodeOfListOfShortReal(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Graphic3d.Handle_Graphic3d_ListNodeOfSetListOfSetOfGroup(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Graphic3d.Handle_Graphic3d_Plotter(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Graphic3d.Handle_Graphic3d_SequenceNodeOfSequenceOfAddress(*args)

Bases: OCC.TCollection.Handle_TCollection_SeqNode

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Graphic3d.Handle_Graphic3d_SequenceNodeOfSequenceOfGroup(*args)

Bases: OCC.TCollection.Handle_TCollection_SeqNode

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Graphic3d.Handle_Graphic3d_SequenceNodeOfSequenceOfStructure(*args)

Bases: OCC.TCollection.Handle_TCollection_SeqNode

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Graphic3d.Handle_Graphic3d_StdMapNodeOfMapOfStructure(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Graphic3d.Handle_Graphic3d_Structure(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Graphic3d.Handle_Graphic3d_StructureManager(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Graphic3d.Handle_Graphic3d_Texture1D(*args)

Bases: OCC.Graphic3d.Handle_Graphic3d_TextureMap

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Graphic3d.Handle_Graphic3d_Texture1Dmanual(*args)

Bases: OCC.Graphic3d.Handle_Graphic3d_Texture1D

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Graphic3d.Handle_Graphic3d_Texture1Dsegment(*args)

Bases: OCC.Graphic3d.Handle_Graphic3d_Texture1D

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Graphic3d.Handle_Graphic3d_Texture2D(*args)

Bases: OCC.Graphic3d.Handle_Graphic3d_TextureMap

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Graphic3d.Handle_Graphic3d_Texture2Dmanual(*args)

Bases: OCC.Graphic3d.Handle_Graphic3d_Texture2D

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Graphic3d.Handle_Graphic3d_Texture2Dplane(*args)

Bases: OCC.Graphic3d.Handle_Graphic3d_Texture2D

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Graphic3d.Handle_Graphic3d_TextureEnv(*args)

Bases: OCC.Graphic3d.Handle_Graphic3d_TextureRoot

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Graphic3d.Handle_Graphic3d_TextureMap(*args)

Bases: OCC.Graphic3d.Handle_Graphic3d_TextureRoot

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Graphic3d.Handle_Graphic3d_TextureParams(*args)

Bases: OCC.Standard.Handle_Standard_Transient

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Graphic3d.Handle_Graphic3d_TextureRoot(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Graphic3d.SwigPyIterator(*args, **kwargs)

Bases: object

advance()
copy()
decr()
distance()
equal()
incr()
next()
previous()
thisown

The membership flag

value()
class OCC.Graphic3d.graphic3d(*args, **kwargs)

Bases: object

static InitGraphicDriver(*args)
  • Initialize graphic driver and returns Handle to it.
Parameters:theDisplayConnection (Aspect_DisplayConnection_Handle &) –
Return type:Handle_Graphic3d_GraphicDriver
thisown

The membership flag

OCC.Graphic3d.graphic3d_InitGraphicDriver(*args)
  • Initialize graphic driver and returns Handle to it.
Parameters:theDisplayConnection (Aspect_DisplayConnection_Handle &) –
Return type:Handle_Graphic3d_GraphicDriver