Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4VVtkPipeline Class Referenceabstract

#include <G4VVtkPipeline.hh>

+ Inheritance diagram for G4VVtkPipeline:

Public Member Functions

 G4VVtkPipeline ()
 
 G4VVtkPipeline (G4String nameIn, G4String typeIn, const G4VtkVisContext &vcIn, G4bool disableParentIn=false, vtkSmartPointer< vtkRenderer > rendererIn=nullptr)
 
virtual ~G4VVtkPipeline ()
 
virtual void Enable ()=0
 
virtual void Disable ()=0
 
virtual void Print ()
 
virtual void Modified ()
 
virtual void Clear ()
 
void SetDisableParent (G4bool disableParentIn)
 
bool GetDisableParent ()
 
void SetName (G4String nameIn)
 
const G4String GetName ()
 
void SetTypeName (G4String typeNameIn)
 
G4String GetTypeName ()
 
G4VtkVisContextGetVtkVisContext ()
 
void AddChildPipeline (G4VVtkPipeline *child)
 
G4VVtkPipelineGetChildPipeline (G4int iPipeline)
 
G4int GetNumberOfChildPipelines ()
 
std::vector< G4VVtkPipeline * > GetChildPipelines ()
 
void ClearChildPipeline ()
 

Protected Attributes

G4String name
 
G4String type
 
G4bool disableParent
 
std::vector< G4VVtkPipeline * > childPipelines
 
vtkSmartPointer< vtkRenderer > renderer
 
G4VtkVisContext vc
 

Detailed Description

Definition at line 124 of file G4VVtkPipeline.hh.

Constructor & Destructor Documentation

◆ G4VVtkPipeline() [1/2]

G4VVtkPipeline::G4VVtkPipeline ( )
inline

Definition at line 127 of file G4VVtkPipeline.hh.

127 : name("none"), type("G4VVtkPipeline"), disableParent(false), renderer(nullptr)
128 {}
vtkSmartPointer< vtkRenderer > renderer

◆ G4VVtkPipeline() [2/2]

G4VVtkPipeline::G4VVtkPipeline ( G4String nameIn,
G4String typeIn,
const G4VtkVisContext & vcIn,
G4bool disableParentIn = false,
vtkSmartPointer< vtkRenderer > rendererIn = nullptr )
inline

Definition at line 129 of file G4VVtkPipeline.hh.

132 : name(nameIn), type(typeIn), disableParent(disableParentIn), renderer(rendererIn), vc(vcIn)
133 {}
G4VtkVisContext vc

◆ ~G4VVtkPipeline()

virtual G4VVtkPipeline::~G4VVtkPipeline ( )
inlinevirtual

Definition at line 134 of file G4VVtkPipeline.hh.

135 {
136 for (auto i : childPipelines)
137 delete i;
138 }
std::vector< G4VVtkPipeline * > childPipelines

Member Function Documentation

◆ AddChildPipeline()

void G4VVtkPipeline::AddChildPipeline ( G4VVtkPipeline * child)
inline

Definition at line 172 of file G4VVtkPipeline.hh.

173 {
174 childPipelines.push_back(child);
175 if (child->GetDisableParent()) {
176 Disable();
177 }
178 }
virtual void Disable()=0

◆ Clear()

◆ ClearChildPipeline()

void G4VVtkPipeline::ClearChildPipeline ( )
inline

Definition at line 182 of file G4VVtkPipeline.hh.

182{ childPipelines.clear(); }

◆ Disable()

◆ Enable()

◆ GetChildPipeline()

G4VVtkPipeline * G4VVtkPipeline::GetChildPipeline ( G4int iPipeline)
inline

Definition at line 179 of file G4VVtkPipeline.hh.

179{ return childPipelines[iPipeline]; }

◆ GetChildPipelines()

std::vector< G4VVtkPipeline * > G4VVtkPipeline::GetChildPipelines ( )
inline

Definition at line 181 of file G4VVtkPipeline.hh.

181{ return childPipelines; }

◆ GetDisableParent()

bool G4VVtkPipeline::GetDisableParent ( )
inline

Definition at line 162 of file G4VVtkPipeline.hh.

162{ return disableParent; }

Referenced by AddChildPipeline().

◆ GetName()

◆ GetNumberOfChildPipelines()

G4int G4VVtkPipeline::GetNumberOfChildPipelines ( )
inline

Definition at line 180 of file G4VVtkPipeline.hh.

180{ return (G4int)childPipelines.size(); }
int G4int
Definition G4Types.hh:85

◆ GetTypeName()

G4String G4VVtkPipeline::GetTypeName ( )
inline

Definition at line 168 of file G4VVtkPipeline.hh.

168{ return type; }

◆ GetVtkVisContext()

G4VtkVisContext & G4VVtkPipeline::GetVtkVisContext ( )
inline

Definition at line 170 of file G4VVtkPipeline.hh.

170{ return vc; }

◆ Modified()

◆ Print()

◆ SetDisableParent()

void G4VVtkPipeline::SetDisableParent ( G4bool disableParentIn)
inline

Definition at line 161 of file G4VVtkPipeline.hh.

161{ disableParent = disableParentIn; }

◆ SetName()

void G4VVtkPipeline::SetName ( G4String nameIn)
inline

Definition at line 164 of file G4VVtkPipeline.hh.

164{ name = nameIn; }

◆ SetTypeName()

Member Data Documentation

◆ childPipelines

std::vector<G4VVtkPipeline*> G4VVtkPipeline::childPipelines
protected

◆ disableParent

G4bool G4VVtkPipeline::disableParent
protected

Definition at line 187 of file G4VVtkPipeline.hh.

Referenced by GetDisableParent(), and SetDisableParent().

◆ name

◆ renderer

◆ type

G4String G4VVtkPipeline::type
protected

Definition at line 186 of file G4VVtkPipeline.hh.

Referenced by GetTypeName(), and SetTypeName().

◆ vc


The documentation for this class was generated from the following file: