Definition at line 21 of file ellipse.
◆ ellipse() [1/2]
tools::sg::ellipse::ellipse |
( |
| ) |
|
|
inline |
◆ ~ellipse()
virtual tools::sg::ellipse::~ellipse |
( |
| ) |
|
|
inlinevirtual |
◆ ellipse() [2/2]
tools::sg::ellipse::ellipse |
( |
const ellipse & |
a_from | ) |
|
|
inline |
◆ bbox()
virtual void tools::sg::ellipse::bbox |
( |
bbox_action & |
a_action | ) |
|
|
inlinevirtual |
◆ cast()
virtual void* tools::sg::ellipse::cast |
( |
const std::string & |
a_class | ) |
const |
|
inlinevirtual |
Reimplemented from tools::curve.
Definition at line 24 of file ellipse.
25 if(
void* p = cmp_cast<ellipse>(
this,a_class))
return p;
26 if(
void* p = cmp_cast<curve>(
this,a_class))
return p;
◆ copy()
virtual void tools::sg::ellipse::copy |
( |
curve *& |
a_new | ) |
const |
|
inlinevirtual |
◆ node_desc_fields()
virtual const desc_fields& tools::sg::ellipse::node_desc_fields |
( |
| ) |
const |
|
inlinevirtual |
Reimplemented from tools::sg::node.
Definition at line 36 of file ellipse.
38 static const desc_fields s_v(parent::node_desc_fields(),5,
◆ operator=()
Definition at line 149 of file ellipse.
150 parent::operator=(a_from);
156 steps = a_from.steps;
◆ pick()
virtual void tools::sg::ellipse::pick |
( |
pick_action & |
a_action | ) |
|
|
inlinevirtual |
Reimplemented from tools::sg::node.
Definition at line 98 of file ellipse.
103 if(a_action.stop_at_first()){
104 a_action.add_line_strip(
m_xyzs);
105 if(a_action.done()) a_action.set_node(
this);
107 a_action.set_done(
false);
108 a_action.zs().clear();
109 a_action.ws().clear();
110 a_action.add_line_strip(
m_xyzs);
111 if(a_action.done()) {
112 a_action.add_pick(*
this,a_action.zs(),a_action.ws(),a_action.state());
113 a_action.set_done(
false);
◆ pos_tan_nor()
virtual bool tools::sg::ellipse::pos_tan_nor |
( |
float |
, |
|
|
vec3f & |
a_pos, |
|
|
vec3f & |
a_tan, |
|
|
vec3f & |
a_nor |
|
) |
| const |
|
inlinevirtual |
Implements tools::curve.
Definition at line 56 of file ellipse.
70 a_pos.set_value(x,y,z);}
75 a_tan.set_value(x,y,z);}
79 a_nor.set_value(x,y,z);}
◆ render()
virtual void tools::sg::ellipse::render |
( |
render_action & |
a_action | ) |
|
|
inlinevirtual |
Reimplemented from tools::sg::node.
Definition at line 86 of file ellipse.
92 const state& state = a_action.state();
93 a_action.set_lighting(
false);
94 a_action.add_line_strip(
m_xyzs);
95 a_action.set_lighting(state.m_GL_LIGHTING);
◆ update_sg()
void tools::sg::ellipse::update_sg |
( |
| ) |
|
|
inlineprotected |
Definition at line 160 of file ellipse.
179 float phi1 = mn<float>(phimin,phimax);
180 float phi2 = mx<float>(phimin,phimax);
183 float dphi = (phi2-phi1)/
float(num);
185 for(
unsigned int i=0;i<=num;i++) {
186 angle = phi1 + float(i)*dphi;
◆ m_xyzs
std::vector<float> tools::sg::ellipse::m_xyzs |
|
protected |
◆ phi_max
sf<float> tools::sg::ellipse::phi_max |
◆ phi_min
sf<float> tools::sg::ellipse::phi_min |
◆ rx
sf<float> tools::sg::ellipse::rx |
◆ ry
sf<float> tools::sg::ellipse::ry |
◆ steps
sf<unsigned int> tools::sg::ellipse::steps |
The documentation for this class was generated from the following file:
- /Users/barrand/private/dev/softinex/g4tools/g4tools/tools/sg/ellipse