#include <G4NURBS.hh>
Public Member Functions | |
CtrlPtsCoordsIterator (const G4NURBS &in_rNurb, t_indCtrlPt in_startCtrlPtIndex=0) | |
G4bool | pick (G4double *inout_pDbl) |
G4bool | pick (G4float *inout_pFlt) |
Protected Attributes | |
const t_Coord *const | kmpMax |
const t_Coord * | mp |
Definition at line 236 of file G4NURBS.hh.
G4NURBS::CtrlPtsCoordsIterator::CtrlPtsCoordsIterator | ( | const G4NURBS & | in_rNurb, | |
t_indCtrlPt | in_startCtrlPtIndex = 0 | |||
) |
Definition at line 267 of file G4NURBS.cc.
References G4cerr, G4endl, mp, G4NURBS::mpCtrlPts, and G4NURBS::mtotnbrCtrlPts.
00269 : kmpMax((const t_Coord *)(in_rNurb.mpCtrlPts + in_rNurb.mtotnbrCtrlPts)) 00270 { 00271 if (in_startCtrlPtIndex < in_rNurb.mtotnbrCtrlPts ) 00272 mp = (const t_Coord *)(in_rNurb.mpCtrlPts + in_startCtrlPtIndex); 00273 else 00274 { 00275 G4cerr << "\nERROR: G4NURBS::CtrlPtsCoordsIterator: " 00276 << "in_startCtrlPtIndex out of range" 00277 << "\n\tin_startCtrlPtIndex : " << in_startCtrlPtIndex 00278 << ", nbr of CtrlPts : " << in_rNurb.mtotnbrCtrlPts 00279 << "\n\t mp set to NULL, calls to picking functions will fail" 00280 << G4endl; 00281 mp = 0; 00282 } 00283 }
const t_Coord* const G4NURBS::CtrlPtsCoordsIterator::kmpMax [protected] |
const t_Coord* G4NURBS::CtrlPtsCoordsIterator::mp [protected] |