MCPcopy Create free account
hub / github.com/Geant4/geant4 / AddSolid

Method AddSolid

source/visualization/management/src/G4VSceneHandler.cc:252–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250}
251
252void G4VSceneHandler::AddSolid (const G4Box& box) {
253 AddSolidT (box);
254 // If your graphics system is sophisticated enough to handle a
255 // particular solid shape as a primitive, in your derived class write a
256 // function to override this.
257 // Your function might look like this...
258 // void G4MySceneHandler::AddSolid (const G4Box& box) {
259 // Get and check applicable vis attributes.
260 // fpVisAttribs = fpViewer->GetApplicableVisAttributes(fpVisAttribs);
261 // Do not draw if not visible.
262 // if (fpVisAttribs->IsVisible()) {
263 // Get parameters of appropriate object, e.g.:
264 // G4double dx = box.GetXHalfLength ();
265 // G4double dy = box.GetYHalfLength ();
266 // G4double dz = box.GetZHalfLength ();
267 // ...
268 // and Draw or Store in your display List.
269}
270
271void G4VSceneHandler::AddSolid (const G4Cons& cons) {
272 AddSolidT (cons);

Callers

nothing calls this directly

Calls 15

NameAndVisAttsClass · 0.85
G4ExceptionFunction · 0.85
GetCurrentDepthMethod · 0.80
GetMeshDepthMethod · 0.80
GetCurrentLVMethod · 0.80
GetContainerVolumeMethod · 0.80
xxMethod · 0.80
yyMethod · 0.80
zzMethod · 0.80
transformMethod · 0.80
GetMaterialMethod · 0.45
GetNameMethod · 0.45

Tested by

no test coverage detected