Mesh Oriented datABase  (version 5.5.1)
An array-based unstructured mesh library
moab::DualTool::GraphicsPoint Class Reference

struct for storing a graphics pt More...

#include <DualTool.hpp>

Public Member Functions

 GraphicsPoint ()
 
 GraphicsPoint (float xi, float yi, float zi, int idi)
 
 GraphicsPoint (float xyzi[3], int idi)
 
 GraphicsPoint (double xyzi[3], int idi)
 
 GraphicsPoint (const GraphicsPoint &gp)
 
GraphicsPointoperator= (GraphicsPoint const &gp)
 

Public Attributes

float xyz [3]
 
int id
 

Detailed Description

struct for storing a graphics pt

Definition at line 55 of file DualTool.hpp.

Constructor & Destructor Documentation

◆ GraphicsPoint() [1/5]

moab::DualTool::GraphicsPoint::GraphicsPoint ( )
inline

Definition at line 58 of file DualTool.hpp.

59  {
60  xyz[0] = 0.0;
61  xyz[1] = 0.0;
62  xyz[2] = 0.0;
63  id = -1;
64  }

References xyz.

◆ GraphicsPoint() [2/5]

moab::DualTool::GraphicsPoint::GraphicsPoint ( float  xi,
float  yi,
float  zi,
int  idi 
)
inline

Definition at line 66 of file DualTool.hpp.

67  {
68  xyz[0] = xi;
69  xyz[1] = yi;
70  xyz[2] = zi;
71  id = idi;
72  }

References xyz.

◆ GraphicsPoint() [3/5]

moab::DualTool::GraphicsPoint::GraphicsPoint ( float  xyzi[3],
int  idi 
)
inline

Definition at line 74 of file DualTool.hpp.

75  {
76  xyz[0] = xyzi[0];
77  xyz[1] = xyzi[1];
78  xyz[2] = xyzi[2];
79  id = idi;
80  }

References xyz.

◆ GraphicsPoint() [4/5]

moab::DualTool::GraphicsPoint::GraphicsPoint ( double  xyzi[3],
int  idi 
)
inline

Definition at line 82 of file DualTool.hpp.

83  {
84  xyz[0] = xyzi[0];
85  xyz[1] = xyzi[1];
86  xyz[2] = xyzi[2];
87  id = idi;
88  }

References xyz.

◆ GraphicsPoint() [5/5]

moab::DualTool::GraphicsPoint::GraphicsPoint ( const GraphicsPoint gp)
inline

Definition at line 90 of file DualTool.hpp.

91  {
92  xyz[0] = gp.xyz[0];
93  xyz[1] = gp.xyz[1];
94  xyz[2] = gp.xyz[2];
95  id = gp.id;
96  }

References id, and xyz.

Member Function Documentation

◆ operator=()

GraphicsPoint& moab::DualTool::GraphicsPoint::operator= ( GraphicsPoint const &  gp)
inline

Definition at line 98 of file DualTool.hpp.

99  {
100  for( unsigned i = 0; i < 3; ++i )
101  xyz[i] = gp.xyz[i];
102  id = gp.id;
103  return *this;
104  }

References id, and xyz.

Member Data Documentation

◆ id

int moab::DualTool::GraphicsPoint::id

Definition at line 107 of file DualTool.hpp.

Referenced by GraphicsPoint(), and operator=().

◆ xyz

float moab::DualTool::GraphicsPoint::xyz[3]

Definition at line 106 of file DualTool.hpp.

Referenced by GraphicsPoint(), and operator=().


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