ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
VP1ExtraInputSystem::Clockwork Class Reference
Collaboration diagram for VP1ExtraInputSystem::Clockwork:

Public Member Functions

void inputFile (const VP1ExtraInputSystem *This, const QString &)
 

Public Attributes

SoSeparator * root = nullptr
 
SoSwitch * visibilitySwitch = nullptr
 
SoLightModel * lightModel = nullptr
 
SoMaterial * material = nullptr
 
SoPickStyle * pickStyle = nullptr
 
std::map< std::string, SoSeparator * > fileMap
 
Ui::ExtraInputControllerForm ui {}
 
QString lastInputDir
 

Detailed Description

Definition at line 23 of file VP1ExtraInputSystem.cxx.

Member Function Documentation

◆ inputFile()

void VP1ExtraInputSystem::Clockwork::inputFile ( const VP1ExtraInputSystem This,
const QString &  fileName 
)

Definition at line 123 of file VP1ExtraInputSystem.cxx.

123  {
124  QList<QListWidgetItem *> itemList = ui.fileListWidget->findItems(fileName,Qt::MatchExactly);
125  if (itemList.isEmpty()) {
126  SoSeparator *inputRoot = VP1QtInventorUtils::readGraphFromFile(fileName);
127  if (inputRoot) {
128  visibilitySwitch->addChild(inputRoot);
129  ui.fileListWidget->addItem(fileName);
130  fileMap[fileName.toStdString()]=inputRoot;
131  } else {
132  This->message("Warning: Could not get scenegraph from file "+fileName);
133  }
134  lastInputDir = QFileInfo(fileName).absolutePath();
135  } else {
136  This->message("Warning, file is already in the display list");
137  }
138 }

Member Data Documentation

◆ fileMap

std::map<std::string, SoSeparator *> VP1ExtraInputSystem::Clockwork::fileMap

Definition at line 33 of file VP1ExtraInputSystem.cxx.

◆ lastInputDir

QString VP1ExtraInputSystem::Clockwork::lastInputDir

Definition at line 35 of file VP1ExtraInputSystem.cxx.

◆ lightModel

SoLightModel* VP1ExtraInputSystem::Clockwork::lightModel = nullptr

Definition at line 29 of file VP1ExtraInputSystem.cxx.

◆ material

SoMaterial* VP1ExtraInputSystem::Clockwork::material = nullptr

Definition at line 30 of file VP1ExtraInputSystem.cxx.

◆ pickStyle

SoPickStyle* VP1ExtraInputSystem::Clockwork::pickStyle = nullptr

Definition at line 31 of file VP1ExtraInputSystem.cxx.

◆ root

SoSeparator* VP1ExtraInputSystem::Clockwork::root = nullptr

Definition at line 27 of file VP1ExtraInputSystem.cxx.

◆ ui

Ui::ExtraInputControllerForm VP1ExtraInputSystem::Clockwork::ui {}

Definition at line 34 of file VP1ExtraInputSystem.cxx.

◆ visibilitySwitch

SoSwitch* VP1ExtraInputSystem::Clockwork::visibilitySwitch = nullptr

Definition at line 28 of file VP1ExtraInputSystem.cxx.


The documentation for this class was generated from the following file:
VP1ExtraInputSystem::Clockwork::lastInputDir
QString lastInputDir
Definition: VP1ExtraInputSystem.cxx:35
VP1ExtraInputSystem::Clockwork::ui
Ui::ExtraInputControllerForm ui
Definition: VP1ExtraInputSystem.cxx:34
FortranAlgorithmOptions.fileName
fileName
Definition: FortranAlgorithmOptions.py:13
VP1ExtraInputSystem::Clockwork::fileMap
std::map< std::string, SoSeparator * > fileMap
Definition: VP1ExtraInputSystem.cxx:33
VP1ExtraInputSystem::Clockwork::visibilitySwitch
SoSwitch * visibilitySwitch
Definition: VP1ExtraInputSystem.cxx:28
VP1QtInventorUtils::readGraphFromFile
static SoSeparator * readGraphFromFile(const QString &filename)
Definition: VP1QtInventorUtils.cxx:1447
IVP1System::message
void message(const QString &) const
Definition: IVP1System.cxx:336