99 G4double xmax=0,xmin=0,ymax=0,ymin=0,zmax=0,zmin=0;
139 t_FirstCenterofVoxelPlane=
G4ThreeVector(xmin,(ymin+ymax)*0.5,
145 t_FirstCenterofVoxelPlane=
G4ThreeVector((xmin+xmax)*0.5,ymin,
153 (ymin+ymax)*0.5,zmin);
169 while (slice_no<no_slices)
178 current_translation_vector=unit_translation_vector;
179 current_translation_vector*=step*slice_no;
183 +t_FirstCenterofVoxelPlane)));
187 if (slice_no<no_slices) { slice=header->
GetSlice(slice_no); }
217 GetNavigatorForTracking()->CreateTouchableHistoryHandle();
219 aTouchable->GetHistory()->GetTopTransform().Inverse();
228 for (
size_t i=0;i<pplist->size();i++)
230 pVVisManager->
Draw((*pplist)[i].GetPolyhedron(),
231 (*pplist)[i].GetTransform()*transf3D);
238 "Pointer to visualization manager is null!");
virtual void Draw(const G4Circle &, const G4Transform3D &objectTransformation=G4Transform3D())=0
G4SmartVoxelHeader * GetVoxelHeader() const
G4SmartVoxelHeader * GetHeader() const
void SetColour(const G4Colour &)
virtual G4bool CalculateExtent(const EAxis pAxis, const G4VoxelLimits &pVoxelLimit, const G4AffineTransform &pTransform, G4double &pMin, G4double &pMax) const =0
static const G4double kInfinity
CLHEP::Hep3Vector G4ThreeVector
static G4VVisManager * GetConcreteInstance()
G4VisAttributes fVoxelsVisAttributes[3]
void SetVoxelsVisAttributes(G4VisAttributes &, G4VisAttributes &, G4VisAttributes &)
G4PlacedPolyhedronList * CreatePlacedPolyhedra(const G4LogicalVolume *) const
G4int GetMaxEquivalentSliceNo() const
void SetBoundingBoxVisAttributes(G4VisAttributes &)
void AddLimit(const EAxis pAxis, const G4double pMin, const G4double pMax)
void ComputeVoxelPolyhedra(const G4LogicalVolume *, const G4SmartVoxelHeader *, G4VoxelLimits &, G4PlacedPolyhedronList *) const
G4int GetNoDaughters() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
void SetVisAttributes(const G4VisAttributes *)
static G4TransportationManager * GetTransportationManager()
G4SmartVoxelNode * GetNode() const
G4VisAttributes fBoundingBoxVisAttributes
G4VSolid * GetSolid() const
void DrawVoxels(const G4LogicalVolume *lv) const
std::vector< G4PlacedPolyhedron > G4PlacedPolyhedronList