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

#include <G4VtkViewer.hh>

+ Inheritance diagram for vtkIPWCallback:

Public Member Functions

 vtkIPWCallback ()=default
 
void SetStore (G4VtkStore *storeIn)
 
void SetUpdatePipelineName (G4String nameIn, G4String typeIn)
 
void Execute (vtkObject *caller, unsigned long, void *) override
 

Static Public Member Functions

static vtkIPWCallbackNew ()
 

Public Attributes

vtkPlane * plane {nullptr}
 
G4VtkStorestore {nullptr}
 
G4String pipelineToUpdateName
 
G4String pipelineToUpdateType
 

Detailed Description

Definition at line 175 of file G4VtkViewer.hh.

Constructor & Destructor Documentation

◆ vtkIPWCallback()

vtkIPWCallback::vtkIPWCallback ( )
default

Referenced by New().

Member Function Documentation

◆ Execute()

void vtkIPWCallback::Execute ( vtkObject * caller,
unsigned long ,
void *  )
inlineoverride

Definition at line 190 of file G4VtkViewer.hh.

191 {
192 if (this->plane == nullptr) {
193 this->plane = vtkPlane::New();
194 }
195
196 if (pipelineToUpdateName.empty() || pipelineToUpdateType.empty()) {
197 return;
198 }
199
200 auto planeWidget = reinterpret_cast<vtkImplicitPlaneWidget2*>(caller);
201 auto rep =
202 reinterpret_cast<vtkImplicitPlaneRepresentation*>(planeWidget->GetRepresentation());
203 rep->GetPlane(this->plane);
206 }
G4Plane3D VtkPlaneToG4Plane3D(vtkPlane *vtkPlane)
void UpdatePlanePipelines(G4String name, G4String type, const G4Plane3D)
G4String pipelineToUpdateType
vtkPlane * plane
G4String pipelineToUpdateName
G4VtkStore * store

◆ New()

static vtkIPWCallback * vtkIPWCallback::New ( )
inlinestatic

Definition at line 178 of file G4VtkViewer.hh.

178{ return new vtkIPWCallback; }
vtkIPWCallback()=default

◆ SetStore()

void vtkIPWCallback::SetStore ( G4VtkStore * storeIn)
inline

Definition at line 182 of file G4VtkViewer.hh.

182{ store = storeIn; }

◆ SetUpdatePipelineName()

void vtkIPWCallback::SetUpdatePipelineName ( G4String nameIn,
G4String typeIn )
inline

Definition at line 184 of file G4VtkViewer.hh.

185 {
186 pipelineToUpdateName = nameIn;
187 pipelineToUpdateType = typeIn;
188 }

Member Data Documentation

◆ pipelineToUpdateName

G4String vtkIPWCallback::pipelineToUpdateName

Definition at line 210 of file G4VtkViewer.hh.

Referenced by Execute(), and SetUpdatePipelineName().

◆ pipelineToUpdateType

G4String vtkIPWCallback::pipelineToUpdateType

Definition at line 211 of file G4VtkViewer.hh.

Referenced by Execute(), and SetUpdatePipelineName().

◆ plane

vtkPlane* vtkIPWCallback::plane {nullptr}

Definition at line 208 of file G4VtkViewer.hh.

208{nullptr};

Referenced by Execute().

◆ store

G4VtkStore* vtkIPWCallback::store {nullptr}

Definition at line 209 of file G4VtkViewer.hh.

209{nullptr};

Referenced by Execute(), and SetStore().


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