Open CASCADE Technology  7.5.0
Public Member Functions | Data Fields
Graphic3d_Vertex Class Reference

This class represents a graphical 3D point. More...

#include <Graphic3d_Vertex.hxx>

Public Member Functions

 Graphic3d_Vertex ()
 Creates a point with 0.0, 0.0, 0.0 coordinates. More...
 
 Graphic3d_Vertex (const Standard_ShortReal theX, const Standard_ShortReal theY, const Standard_ShortReal theZ)
 Creates a point with theX, theY and theZ coordinates. More...
 
 Graphic3d_Vertex (const Standard_Real theX, const Standard_Real theY, const Standard_Real theZ)
 Creates a point with theX, theY and theZ coordinates. More...
 
void SetCoord (const Standard_ShortReal theX, const Standard_ShortReal theY, const Standard_ShortReal theZ)
 Modifies the coordinates. More...
 
void SetCoord (const Standard_Real theX, const Standard_Real theY, const Standard_Real theZ)
 Modifies the coordinates. More...
 
void Coord (Standard_ShortReal &theX, Standard_ShortReal &theY, Standard_ShortReal &theZ) const
 Returns the coordinates. More...
 
void Coord (Standard_Real &theX, Standard_Real &theY, Standard_Real &theZ) const
 Returns the coordinates. More...
 
Standard_ShortReal X () const
 Returns the X coordinates. More...
 
Standard_ShortReal Y () const
 Returns the Y coordinate. More...
 
Standard_ShortReal Z () const
 Returns the Z coordinate. More...
 
Standard_ShortReal Distance (const Graphic3d_Vertex &theOther) const
 Returns the distance between two points. More...
 
void DumpJson (Standard_OStream &theOStream, Standard_Integer theDepth=-1) const
 Dumps the content of me into the stream. More...
 

Data Fields

float xyz [3]
 

Detailed Description

This class represents a graphical 3D point.

Constructor & Destructor Documentation

◆ Graphic3d_Vertex() [1/3]

Graphic3d_Vertex::Graphic3d_Vertex ( )
inline

Creates a point with 0.0, 0.0, 0.0 coordinates.

◆ Graphic3d_Vertex() [2/3]

Graphic3d_Vertex::Graphic3d_Vertex ( const Standard_ShortReal  theX,
const Standard_ShortReal  theY,
const Standard_ShortReal  theZ 
)
inline

Creates a point with theX, theY and theZ coordinates.

◆ Graphic3d_Vertex() [3/3]

Graphic3d_Vertex::Graphic3d_Vertex ( const Standard_Real  theX,
const Standard_Real  theY,
const Standard_Real  theZ 
)
inline

Creates a point with theX, theY and theZ coordinates.

Member Function Documentation

◆ Coord() [1/2]

void Graphic3d_Vertex::Coord ( Standard_ShortReal theX,
Standard_ShortReal theY,
Standard_ShortReal theZ 
) const
inline

Returns the coordinates.

◆ Coord() [2/2]

void Graphic3d_Vertex::Coord ( Standard_Real theX,
Standard_Real theY,
Standard_Real theZ 
) const
inline

Returns the coordinates.

◆ Distance()

Standard_ShortReal Graphic3d_Vertex::Distance ( const Graphic3d_Vertex theOther) const

Returns the distance between two points.

◆ DumpJson()

void Graphic3d_Vertex::DumpJson ( Standard_OStream theOStream,
Standard_Integer  theDepth = -1 
) const

Dumps the content of me into the stream.

◆ SetCoord() [1/2]

void Graphic3d_Vertex::SetCoord ( const Standard_ShortReal  theX,
const Standard_ShortReal  theY,
const Standard_ShortReal  theZ 
)
inline

Modifies the coordinates.

◆ SetCoord() [2/2]

void Graphic3d_Vertex::SetCoord ( const Standard_Real  theX,
const Standard_Real  theY,
const Standard_Real  theZ 
)
inline

Modifies the coordinates.

◆ X()

Standard_ShortReal Graphic3d_Vertex::X ( ) const
inline

Returns the X coordinates.

◆ Y()

Standard_ShortReal Graphic3d_Vertex::Y ( ) const
inline

Returns the Y coordinate.

◆ Z()

Standard_ShortReal Graphic3d_Vertex::Z ( ) const
inline

Returns the Z coordinate.

Field Documentation

◆ xyz

float Graphic3d_Vertex::xyz[3]

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