Open CASCADE Technology  7.4.0
Public Member Functions
Vrml_Cube Class Reference

defines a Cube node of VRML specifying geometry shapes. This node represents a cuboid aligned with the coordinate axes. By default , the cube is centred at (0,0,0) and measures 2 units in each dimension, from -1 to +1. A cube's width is its extent along its object-space X axis, its height is its extent along the object-space Y axis, and its depth is its extent along its object-space Z axis. More...

#include <Vrml_Cube.hxx>

Public Member Functions

 Vrml_Cube (const Standard_Real aWidth=2, const Standard_Real aHeight=2, const Standard_Real aDepth=2)
 
void SetWidth (const Standard_Real aWidth)
 
Standard_Real Width () const
 
void SetHeight (const Standard_Real aHeight)
 
Standard_Real Height () const
 
void SetDepth (const Standard_Real aDepth)
 
Standard_Real Depth () const
 
Standard_OStreamPrint (Standard_OStream &anOStream) const
 

Detailed Description

defines a Cube node of VRML specifying geometry shapes. This node represents a cuboid aligned with the coordinate axes. By default , the cube is centred at (0,0,0) and measures 2 units in each dimension, from -1 to +1. A cube's width is its extent along its object-space X axis, its height is its extent along the object-space Y axis, and its depth is its extent along its object-space Z axis.

Constructor & Destructor Documentation

◆ Vrml_Cube()

Vrml_Cube::Vrml_Cube ( const Standard_Real  aWidth = 2,
const Standard_Real  aHeight = 2,
const Standard_Real  aDepth = 2 
)

Member Function Documentation

◆ Depth()

Standard_Real Vrml_Cube::Depth ( ) const

◆ Height()

Standard_Real Vrml_Cube::Height ( ) const

◆ Print()

Standard_OStream& Vrml_Cube::Print ( Standard_OStream anOStream) const

◆ SetDepth()

void Vrml_Cube::SetDepth ( const Standard_Real  aDepth)

◆ SetHeight()

void Vrml_Cube::SetHeight ( const Standard_Real  aHeight)

◆ SetWidth()

void Vrml_Cube::SetWidth ( const Standard_Real  aWidth)

◆ Width()

Standard_Real Vrml_Cube::Width ( ) const

The documentation for this class was generated from the following file: