#include <G4Scene.hh>
Definition at line 49 of file G4Scene.hh.
◆ anonymous enum
◆ G4Scene()
G4Scene::G4Scene |
( |
const G4String & |
name = "scene-with-unspecified-name" | ) |
|
Definition at line 40 of file G4Scene.cc.
G4bool fRefreshAtEndOfRun
G4bool fRefreshAtEndOfEvent
G4int fMaxNumberOfKeptEvents
◆ ~G4Scene()
◆ AddEndOfEventModel()
Definition at line 192 of file G4Scene.cc.
194 for (i = 0; i < nModels; i++) {
195 if (pModel -> GetGlobalDescription () ==
200 G4cout <<
"G4Scene::AddEndOfEventModel: a model \"" 201 << pModel -> GetGlobalDescription ()
202 <<
"\"\n is already in the end-of-event list of scene \""
std::vector< Model > fEndOfEventModelList
G4GLOB_DLL std::ostream G4cout
◆ AddEndOfRunModel()
Definition at line 212 of file G4Scene.cc.
214 for (i = 0; i < nModels; i++) {
215 if (pModel -> GetGlobalDescription () ==
220 G4cout <<
"G4Scene::AddEndOfRunModel: a model \"" 221 << pModel -> GetGlobalDescription ()
222 <<
"\"\n is already in the end-of-run list of scene \""
std::vector< Model > fEndOfRunModelList
G4GLOB_DLL std::ostream G4cout
◆ AddRunDurationModel()
Definition at line 49 of file G4Scene.cc.
50 std::vector<Model>::const_iterator i;
53 if (pModel -> GetGlobalDescription () ==
58 G4cout <<
"G4Scene::AddRunDurationModel: model \"" 59 << pModel -> GetGlobalDescription ()
60 <<
"\"\n is already in the run-duration list of scene \""
const G4String & GetGlobalDescription() const
G4GLOB_DLL std::ostream G4cout
std::vector< Model > fRunDurationModelList
◆ AddWorldIfEmpty()
Definition at line 156 of file G4Scene.cc.
162 -> GetNavigatorForTracking () -> GetWorldVolume ();
165 pWorld -> GetLogicalVolume () -> GetVisAttributes ();
166 if (!pVisAttribs || pVisAttribs -> IsVisible ()) {
169 "Your \"world\" has no vis attributes or is marked as visible." 170 "\n For a better view of the contents, mark the world as" 172 "\n myWorldLogicalVol ->" 173 " SetVisAttributes (G4VisAttributes::GetInvisible());" 182 "G4Scene::AddWorldIfEmpty: The scene was empty of run-duration models." 183 "\n \"world\" has been added.";
G4GLOB_DLL std::ostream G4cout
G4bool AddRunDurationModel(G4VModel *, G4bool warn=false)
static G4TransportationManager * GetTransportationManager()
◆ CalculateExtent()
void G4Scene::CalculateExtent |
( |
| ) |
|
Definition at line 72 of file G4Scene.cc.
79 if (model -> Validate()) {
82 if (thisRadius > 0.) {
84 thisCentre.transform (model -> GetTransformation ());
90 <<
"\".\n Not included in extent calculation.";
92 (
"G4Scene::CalculateExtent",
101 if (model -> Validate()) {
104 if (thisRadius > 0.) {
106 thisCentre.transform (model -> GetTransformation ());
112 <<
"\".\n Not included in extent calculation.";
114 (
"G4Scene::CalculateExtent",
123 if (model -> Validate()) {
126 if (thisRadius > 0.) {
128 thisCentre.transform (model -> GetTransformation ());
134 <<
"\".\n Not included in extent calculation.";
136 (
"G4Scene::CalculateExtent",
146 (
"G4Scene::CalculateExtent",
148 "Scene has no extent. Please activate or add something." 149 "\nThe camera needs to have something to point at!" 150 "\nAdd a volume. (You may need \"/run/initialize\".)" 151 "\nOr use \"/vis/scene/add/extent\"." 152 "\n\"/vis/scene/list\" to see list of models.");
std::vector< Model > fEndOfRunModelList
std::ostringstream G4ExceptionDescription
const G4String & GetGlobalDescription() const
G4double GetExtentRadius() const
std::vector< Model > fEndOfEventModelList
G4Point3D fStandardTargetPoint
const G4VisExtent & GetExtent() const
G4VisExtent GetBoundingSphereExtent()
const G4Point3D & GetExtentCentre() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
void AccrueBoundingSphere(const G4Point3D ¢re, G4double radius)
std::vector< Model > fRunDurationModelList
◆ GetEndOfEventModelList()
const std::vector<Model>& G4Scene::GetEndOfEventModelList |
( |
| ) |
const |
◆ GetEndOfRunModelList()
const std::vector<Model>& G4Scene::GetEndOfRunModelList |
( |
| ) |
const |
◆ GetExtent()
◆ GetMaxNumberOfKeptEvents()
G4int G4Scene::GetMaxNumberOfKeptEvents |
( |
| ) |
const |
◆ GetName()
const G4String& G4Scene::GetName |
( |
| ) |
const |
◆ GetRefreshAtEndOfEvent()
G4bool G4Scene::GetRefreshAtEndOfEvent |
( |
| ) |
const |
◆ GetRefreshAtEndOfRun()
G4bool G4Scene::GetRefreshAtEndOfRun |
( |
| ) |
const |
◆ GetRunDurationModelList()
const std::vector<Model>& G4Scene::GetRunDurationModelList |
( |
| ) |
const |
◆ GetStandardTargetPoint()
const G4Point3D& G4Scene::GetStandardTargetPoint |
( |
| ) |
const |
◆ IsEmpty()
G4bool G4Scene::IsEmpty |
( |
| ) |
const |
◆ operator!=()
Definition at line 280 of file G4Scene.cc.
std::vector< Model > fEndOfRunModelList
G4bool fRefreshAtEndOfRun
std::vector< Model > fEndOfEventModelList
G4Point3D fStandardTargetPoint
G4bool fRefreshAtEndOfEvent
G4int fMaxNumberOfKeptEvents
std::vector< Model > fRunDurationModelList
◆ operator==()
◆ SetEndOfEventModelList()
std::vector<Model>& G4Scene::SetEndOfEventModelList |
( |
| ) |
|
◆ SetEndOfRunModelList()
std::vector<Model>& G4Scene::SetEndOfRunModelList |
( |
| ) |
|
◆ SetMaxNumberOfKeptEvents()
void G4Scene::SetMaxNumberOfKeptEvents |
( |
G4int |
| ) |
|
◆ SetName()
void G4Scene::SetName |
( |
const G4String & |
| ) |
|
◆ SetRefreshAtEndOfEvent()
void G4Scene::SetRefreshAtEndOfEvent |
( |
G4bool |
| ) |
|
◆ SetRefreshAtEndOfRun()
void G4Scene::SetRefreshAtEndOfRun |
( |
G4bool |
| ) |
|
◆ SetRunDurationModelList()
std::vector<Model>& G4Scene::SetRunDurationModelList |
( |
| ) |
|
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const G4Scene & |
d |
|
) |
| |
|
friend |
Definition at line 232 of file G4Scene.cc.
238 os <<
"\n Run-duration model list:";
239 for (i = 0; i < scene.fRunDurationModelList.size (); i++) {
240 if (scene.fRunDurationModelList[i].fActive) os <<
"\n Active: ";
241 else os <<
"\n Inactive: ";
242 os << *(scene.fRunDurationModelList[i].fpModel);
245 os <<
"\n End-of-event model list:";
246 for (i = 0; i < scene.fEndOfEventModelList.size (); i++) {
247 if (scene.fEndOfEventModelList[i].fActive) os <<
"\n Active: ";
248 else os <<
"\n Inactive: ";
249 os << *(scene.fEndOfEventModelList[i].fpModel);
252 os <<
"\n End-of-run model list:";
253 for (i = 0; i < scene.fEndOfRunModelList.size (); i++) {
254 if (scene.fEndOfRunModelList[i].fActive) os <<
"\n Active: ";
255 else os <<
"\n Inactive: ";
256 os << *(scene.fEndOfRunModelList[i].fpModel);
259 os <<
"\n Extent or bounding box: " << scene.fExtent;
261 os <<
"\n Standard target point: " << scene.fStandardTargetPoint;
263 os <<
"\n End of event action set to \"";
264 if (scene.fRefreshAtEndOfEvent) os <<
"refresh\"";
266 os <<
"accumulate (maximum number of kept events: ";
267 if (scene.fMaxNumberOfKeptEvents >= 0) os << scene.fMaxNumberOfKeptEvents;
268 else os <<
"unlimited";
272 os <<
"\n End of run action set to \"";
273 if (scene.fRefreshAtEndOfRun) os <<
"refresh";
274 else os <<
"accumulate";
◆ fEndOfEventModelList
std::vector<Model> G4Scene::fEndOfEventModelList |
|
private |
◆ fEndOfRunModelList
std::vector<Model> G4Scene::fEndOfRunModelList |
|
private |
◆ fExtent
◆ fMaxNumberOfKeptEvents
G4int G4Scene::fMaxNumberOfKeptEvents |
|
private |
◆ fName
◆ fRefreshAtEndOfEvent
G4bool G4Scene::fRefreshAtEndOfEvent |
|
private |
◆ fRefreshAtEndOfRun
G4bool G4Scene::fRefreshAtEndOfRun |
|
private |
◆ fRunDurationModelList
std::vector<Model> G4Scene::fRunDurationModelList |
|
private |
◆ fStandardTargetPoint
The documentation for this class was generated from the following files: