Import Geant4 8.3.0 source tree
This commit is contained in:
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4VSceneHandler.hh,v 1.37 2006/11/15 19:25:31 allison Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: G4VSceneHandler.hh,v 1.39 2007/01/11 16:38:14 allison Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//
|
||||
// John Allison 19th July 1996.
|
||||
@@ -58,6 +58,7 @@ class G4LogicalVolume;
|
||||
class G4VPhysicalVolume;
|
||||
class G4Material;
|
||||
class G4Event;
|
||||
class G4AttHolder;
|
||||
|
||||
class G4VSceneHandler: public G4VGraphicsScene {
|
||||
|
||||
@@ -216,10 +217,6 @@ public: // With description
|
||||
void SetTransientsDrawnThisEvent (G4bool);
|
||||
void SetTransientsDrawnThisRun (G4bool);
|
||||
// Maintained by vis manager.
|
||||
void SetEvent (const G4Event*);
|
||||
// If non-zero, this event is used in ProcessScene. Otherwise, the
|
||||
// current event, or last event(s) are used. The user must
|
||||
// SetEvent(0) when finished.
|
||||
|
||||
//////////////////////////////////////////////////////////////
|
||||
// Public utility functions.
|
||||
@@ -232,9 +229,8 @@ public: // With description
|
||||
const G4Colour& GetTextColor (const G4Text&);
|
||||
// Returns colour of G4Text object, or default text colour.
|
||||
|
||||
G4double GetLineWidth(const G4Visible& visible);
|
||||
// Returns line width of G4Visible object, or default line width.
|
||||
// Multiplies by GlobalLineWidthScale.
|
||||
G4double GetLineWidth(const G4VisAttributes*);
|
||||
// Returns line width of G4VisAttributes multiplied by GlobalLineWidthScale.
|
||||
|
||||
G4ViewParameters::DrawingStyle GetDrawingStyle (const G4VisAttributes*);
|
||||
// Returns drawing style from current view parameters, unless the user
|
||||
@@ -246,7 +242,7 @@ public: // With description
|
||||
// unless the user has forced through the vis attributes, thereby
|
||||
// over-riding the current view parameter.
|
||||
|
||||
G4int GetNoOfSides(const G4VisAttributes* pVisAttribs);
|
||||
G4int GetNoOfSides(const G4VisAttributes*);
|
||||
// Returns no. of sides (lines segments per circle) from current
|
||||
// view parameters, unless the user has forced through the vis
|
||||
// attributes, thereby over-riding the current view parameter.
|
||||
@@ -313,6 +309,15 @@ protected:
|
||||
// Generic clipping using the BooleanProcessor in graphics_reps is
|
||||
// implemented in this class. Subclasses that implement their own
|
||||
// clipping should provide an override that returns zero.
|
||||
void LoadAtts(const G4Visible&, G4AttHolder*);
|
||||
// Load G4AttValues and G4AttDefs associated with the G4Visible
|
||||
// object onto the G4AttHolder object. It checks fpModel, and also
|
||||
// loads the G4AttValues and G4AttDefs from G4PhysicalVolumeModel,
|
||||
// G4VTrajectory, G4VTrajectoryPoint, or G4VHits, as appropriate.
|
||||
// The G4AttHolder object is an object of a class that publicly
|
||||
// inherits G4AttHolder - see, e.g., SoG4Polyhedron in the Open
|
||||
// Inventor driver. G4AttHolder deletes G4AttValues in its
|
||||
// destructor to ensure proper clean-up of G4AttValues.
|
||||
|
||||
//////////////////////////////////////////////////////////////
|
||||
// Data members
|
||||
@@ -337,7 +342,6 @@ protected:
|
||||
// object transformation.
|
||||
G4int fNestingDepth; // For Begin/EndPrimitives.
|
||||
const G4VisAttributes* fpVisAttribs; // Working vis attributes.
|
||||
const G4Event* fRequestedEvent; // If non-zero, use this event.
|
||||
const G4Transform3D fIdentityTransformation;
|
||||
|
||||
private:
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4VSceneHandler.icc,v 1.18 2006/11/15 19:25:31 allison Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: G4VSceneHandler.icc,v 1.20 2007/01/11 16:38:14 allison Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//
|
||||
// John Allison 19th July 1996.
|
||||
@@ -123,9 +123,6 @@ inline void G4VSceneHandler::SetTransientsDrawnThisRun (G4bool drawn) {
|
||||
fTransientsDrawnThisRun = drawn;
|
||||
}
|
||||
|
||||
inline void G4VSceneHandler::SetEvent (const G4Event* event) {
|
||||
fRequestedEvent = event;
|
||||
}
|
||||
inline const G4Colour& G4VSceneHandler::GetColor (const G4Visible& visible) {
|
||||
return GetColour (visible);
|
||||
}
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4VisCommands.hh,v 1.6 2006/11/14 14:59:54 allison Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: G4VisCommands.hh,v 1.7 2007/01/11 16:39:33 allison Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
|
||||
// /vis/ top level commands - John Allison 5th February 2001
|
||||
|
||||
@@ -38,6 +38,18 @@ class G4UIcmdWithABool;
|
||||
class G4UIcmdWithAString;
|
||||
class G4UIcmdWithoutParameter;
|
||||
|
||||
class G4VisCommandAbortReviewKeptEvents: public G4VVisCommand {
|
||||
public:
|
||||
G4VisCommandAbortReviewKeptEvents ();
|
||||
virtual ~G4VisCommandAbortReviewKeptEvents ();
|
||||
G4String GetCurrentValue (G4UIcommand* command);
|
||||
void SetNewValue (G4UIcommand* command, G4String newValue);
|
||||
private:
|
||||
G4VisCommandAbortReviewKeptEvents (const G4VisCommandAbortReviewKeptEvents&);
|
||||
G4VisCommandAbortReviewKeptEvents& operator = (const G4VisCommandAbortReviewKeptEvents&);
|
||||
G4UIcmdWithABool* fpCommand;
|
||||
};
|
||||
|
||||
class G4VisCommandEnable: public G4VVisCommand {
|
||||
public:
|
||||
G4VisCommandEnable ();
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4VisCommandsGeometrySet.hh,v 1.2 2006/06/29 21:28:36 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: G4VisCommandsGeometrySet.hh,v 1.3 2007/01/05 16:24:19 allison Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
|
||||
// /vis/geometry commands - John Allison 31st January 2006
|
||||
|
||||
@@ -81,6 +81,19 @@ private:
|
||||
G4bool fForceAuxEdgeVisible;
|
||||
};
|
||||
|
||||
class G4VisCommandGeometrySetForceLineSegmentsPerCircleFunction:
|
||||
public G4VVisCommandGeometrySetFunction {
|
||||
public:
|
||||
G4VisCommandGeometrySetForceLineSegmentsPerCircleFunction
|
||||
(G4int lineSegmentsPerCircle):
|
||||
fLineSegmentsPerCircle(lineSegmentsPerCircle) {}
|
||||
void operator()
|
||||
(G4VisAttributes* visAtts) const
|
||||
{visAtts->SetForceLineSegmentsPerCircle(fLineSegmentsPerCircle);}
|
||||
private:
|
||||
G4int fLineSegmentsPerCircle;
|
||||
};
|
||||
|
||||
class G4VisCommandGeometrySetForceSolidFunction:
|
||||
public G4VVisCommandGeometrySetFunction {
|
||||
public:
|
||||
@@ -211,6 +224,21 @@ private:
|
||||
G4UIcommand* fpCommand;
|
||||
};
|
||||
|
||||
class G4VisCommandGeometrySetForceLineSegmentsPerCircle:
|
||||
public G4VVisCommandGeometrySet {
|
||||
public:
|
||||
G4VisCommandGeometrySetForceLineSegmentsPerCircle ();
|
||||
virtual ~G4VisCommandGeometrySetForceLineSegmentsPerCircle ();
|
||||
G4String GetCurrentValue (G4UIcommand* command);
|
||||
void SetNewValue (G4UIcommand* command, G4String newValue);
|
||||
private:
|
||||
G4VisCommandGeometrySetForceLineSegmentsPerCircle
|
||||
(const G4VisCommandGeometrySetForceLineSegmentsPerCircle&);
|
||||
G4VisCommandGeometrySetForceLineSegmentsPerCircle& operator=
|
||||
(const G4VisCommandGeometrySetForceLineSegmentsPerCircle&);
|
||||
G4UIcommand* fpCommand;
|
||||
};
|
||||
|
||||
class G4VisCommandGeometrySetForceWireframe:
|
||||
public G4VVisCommandGeometrySet {
|
||||
public:
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4VisManager.hh,v 1.65 2006/11/21 14:23:20 allison Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: G4VisManager.hh,v 1.66 2007/01/11 16:40:05 allison Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//
|
||||
|
||||
@@ -348,6 +348,8 @@ public: // With description
|
||||
G4int GetLastRunID () const;
|
||||
G4bool GetTransientsDrawnThisRun () const;
|
||||
G4bool GetTransientsDrawnThisEvent () const;
|
||||
const G4Event* GetRequestedEvent () const;
|
||||
G4bool GetAbortReviewKeptEvents () const;
|
||||
|
||||
void SetUserAction (G4VUserVisAction* pVisAction,
|
||||
const G4VisExtent& = G4VisExtent::NullExtent);
|
||||
@@ -365,6 +367,9 @@ public: // With description
|
||||
void SetXGeometryString (const G4String&);
|
||||
void SetEventRefreshing (G4bool);
|
||||
void ResetTransientsDrawnFlags ();
|
||||
// If non-zero, requested event is used in G4VSceneHandler::ProcessScene.
|
||||
void SetRequestedEvent (const G4Event*);
|
||||
void SetAbortReviewKeptEvents (G4bool);
|
||||
|
||||
/////////////////////////////////////////////////////////////////////
|
||||
// Utility functions.
|
||||
@@ -435,13 +440,15 @@ private:
|
||||
std::vector<G4UIcommand*> fDirectoryList;
|
||||
G4VisStateDependent* fpStateDependent; // Friend state dependent class.
|
||||
G4int fWindowSizeHintX, fWindowSizeHintY; // For viewer...
|
||||
G4String fXGeometryString; // ...construction.
|
||||
G4TrajectoriesModel dummyTrajectoriesModel; // For passing drawing mode.
|
||||
G4bool fEventRefreshing;
|
||||
G4bool fTransientsDrawnThisRun;
|
||||
G4bool fTransientsDrawnThisEvent;
|
||||
G4bool fEventKeepingSuspended;
|
||||
G4bool fKeptLastEvent;
|
||||
G4String fXGeometryString; // ...construction.
|
||||
G4TrajectoriesModel dummyTrajectoriesModel; // For passing drawing mode.
|
||||
G4bool fEventRefreshing;
|
||||
G4bool fTransientsDrawnThisRun;
|
||||
G4bool fTransientsDrawnThisEvent;
|
||||
G4bool fEventKeepingSuspended;
|
||||
G4bool fKeptLastEvent;
|
||||
const G4Event* fpRequestedEvent; // If non-zero, scene handler uses.
|
||||
G4bool fAbortReviewKeptEvents;
|
||||
|
||||
// Trajectory draw model manager
|
||||
G4VisModelManager<G4VTrajectoryModel>* fpTrajDrawModelMgr;
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4VisManager.icc,v 1.19 2006/11/14 14:59:55 allison Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: G4VisManager.icc,v 1.20 2007/01/11 16:40:58 allison Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//
|
||||
// GEANT4 Visualization Manager - John Allison 02/Jan/1996.
|
||||
@@ -89,6 +89,14 @@ inline G4bool G4VisManager::GetTransientsDrawnThisRun() const {
|
||||
return fTransientsDrawnThisRun;
|
||||
}
|
||||
|
||||
inline const G4Event* G4VisManager::GetRequestedEvent() const {
|
||||
return fpRequestedEvent;
|
||||
}
|
||||
|
||||
inline G4bool G4VisManager::GetAbortReviewKeptEvents() const {
|
||||
return fAbortReviewKeptEvents;
|
||||
}
|
||||
|
||||
inline void G4VisManager::SetUserActionExtent (const G4VisExtent& extent) {
|
||||
fUserVisActionExtent = extent;
|
||||
}
|
||||
@@ -121,3 +129,11 @@ inline void G4VisManager::RegisterMessenger(G4UImessenger* msgr)
|
||||
{
|
||||
fMessengerList.push_back(msgr);
|
||||
}
|
||||
|
||||
inline void G4VisManager::SetRequestedEvent (const G4Event* event) {
|
||||
fpRequestedEvent = event;
|
||||
}
|
||||
|
||||
inline void G4VisManager::SetAbortReviewKeptEvents (G4bool abort) {
|
||||
fAbortReviewKeptEvents = abort;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user