|
ATLAS Offline Software
|
#include <VP1ExaminerViewer.h>
|
| VP1ExaminerViewer (QWidget *parent=0, bool detectorViewButtons=true, const char *name=0, SbBool embed=TRUE, SoQtFullViewer::BuildFlag flag=BUILD_ALL, SoQtViewer::Type type=BROWSER) |
|
| VP1ExaminerViewer (const VP1ExaminerViewer &)=delete |
|
VP1ExaminerViewer & | operator= (const VP1ExaminerViewer &)=delete |
|
virtual | ~VP1ExaminerViewer () |
|
virtual void | removeDecorationMenuOption () |
|
virtual QByteArray | saveState () |
|
virtual void | restoreFromState (QByteArray) |
|
virtual void | viewAll () |
|
virtual void | toggleCameraType () |
|
virtual void | setCameraType (SoType type) |
|
virtual void | setSeekMode (SbBool enable) |
|
virtual void | setViewing (SbBool enable) |
|
virtual void | setBufferingType (SoQtViewer::BufferType) |
|
virtual void | setAntialiasing (SbBool smoothing, int numPasses) |
|
virtual void | setTransparencyType (SoGLRenderAction::TransparencyType) |
|
virtual void | setDrawStyle (SoQtViewer::DrawType, SoQtViewer::DrawStyle) |
|
virtual void | showPopupMenu () |
|
void | setAmbientLight (int) |
|
int | ambientLight () const |
|
virtual void | setSceneGraph (SoNode *) |
|
virtual SoNode * | getSceneGraph () |
|
void | fadeLastRecordedFrameToCurrent (double time_seconds) |
|
bool | isAntiAlias () const |
|
void | setAntiAlias (bool) |
|
void | startTour () |
|
bool | startTourEachEvent () const |
|
void | startCustomTour () |
|
void | dumpSceneToFile (QString filename="") |
|
void | dumpSceneToVRMLFile (QString filename="") |
|
void | produceSVGImage (QString filename="") |
|
void | produceEPSImage (QString filename="") |
|
void | storeCameraParametersForReset () |
|
void | resetCamera () |
|
bool | currentCamIsPerspective () const |
|
QByteArray | currentCameraState () const |
|
QPixmap | getSnapShotFromCamState (bool camStateIsPerspective, QByteArray camState, int width, int height, bool transp=false) |
|
void | setStereoOffsetSlot (float offset) |
|
float | getStereoOffsetSlot () |
|
SbBool | setStereoTypeSlot (SoQtViewer::StereoType type) |
|
SoQtViewer::StereoType | getStereoTypeSlot (void) const |
|
void | setAnaglyphStereoColorMasksSlot (const SbBool left[3], const SbBool right[3]) |
|
void | getAnaglyphStereoColorMasksSlot (SbBool left[3], SbBool right[3]) |
|
void | launchStereoEditor () |
|
Definition at line 30 of file VP1ExaminerViewer.h.
◆ VP1ExaminerViewer() [1/2]
VP1ExaminerViewer::VP1ExaminerViewer |
( |
QWidget * |
parent = 0 , |
|
|
bool |
detectorViewButtons = true , |
|
|
const char * |
name = 0 , |
|
|
SbBool |
embed = TRUE , |
|
|
SoQtFullViewer::BuildFlag |
flag = BUILD_ALL , |
|
|
SoQtViewer::Type |
type = BROWSER |
|
) |
| |
Definition at line 526 of file VP1ExaminerViewer.cxx.
533 m_d(
new Imp(
this,detectorViewButtons))
537 QWidget * widget = buildWidget(getParentWidget());
539 rightWheelLabel->setVisible(
false);
540 setBaseWidget(widget);
541 setLeftWheelString(
"Rotz");
544 setRightWheelString(
"Zoom test");
545 leftWheel->setMinimumHeight(20);
546 rightWheel->setMinimumHeight(20);
◆ VP1ExaminerViewer() [2/2]
◆ ~VP1ExaminerViewer()
VP1ExaminerViewer::~VP1ExaminerViewer |
( |
| ) |
|
|
virtual |
Definition at line 920 of file VP1ExaminerViewer.cxx.
922 #if SOQT_MAJOR_VERSION <= 1 && SOQT_MINOR_VERSION <= 4 && SOQT_MICRO_VERSION <= 1
927 SoQtExaminerViewer::setSceneGraph(0);
◆ ambientLight()
int VP1ExaminerViewer::ambientLight |
( |
| ) |
const |
◆ bottomWheelFinish()
void VP1ExaminerViewer::bottomWheelFinish |
( |
| ) |
|
|
protectedvirtual |
◆ bottomWheelMotion()
void VP1ExaminerViewer::bottomWheelMotion |
( |
float |
val | ) |
|
|
protectedvirtual |
◆ bottomWheelStart()
void VP1ExaminerViewer::bottomWheelStart |
( |
| ) |
|
|
protectedvirtual |
◆ buildPopupMenu()
void VP1ExaminerViewer::buildPopupMenu |
( |
| ) |
|
|
protectedvirtual |
◆ createViewerButtons()
void VP1ExaminerViewer::createViewerButtons |
( |
QWidget * |
parent, |
|
|
SbPList * |
buttonlist |
|
) |
| |
|
protectedvirtual |
Definition at line 931 of file VP1ExaminerViewer.cxx.
935 SoQtExaminerViewer::createViewerButtons(
parent,buttonlist);
938 if (buttonlist->getLength()==7) {
948 m_d->
button_interact->setToolTip(
"Pick mode (ESC/M toggles). Use this in order to select objects.");
949 m_d->
button_examine->setToolTip(
"Navigation mode (ESC/M toggles). Use to ROTATE (left click), ZOOM (wheel or SHIFT+CTRL+left click) or PAN (middle click or SHIFT+left click or CTRL+left click).");
953 m_d->
button_seek->setToolTip(
"Seek to point (S). Sets cameras rotation centre to the clicked point and zooms towards it.");
954 m_d->
button_togglecamera->setToolTip(
"Toggle (C) camera between perspective (P) and orthographic (O) mode.");
959 VP1Msg::message(
"VP1ExaminerViewer::createViewerButtons ERROR: Did not get list of exactly 7 buttons from base.");
◆ currentCameraState()
QByteArray VP1ExaminerViewer::currentCameraState |
( |
| ) |
const |
◆ currentCamIsPerspective()
bool VP1ExaminerViewer::currentCamIsPerspective |
( |
| ) |
const |
◆ dumpSceneToFile()
void VP1ExaminerViewer::dumpSceneToFile |
( |
QString |
filename = "" | ) |
|
Definition at line 2254 of file VP1ExaminerViewer.cxx.
2262 QWidget *
w = getWidget();
2269 filename = QFileDialog::getSaveFileName(
w,
"Select output file",
2271 "Inventor files (*.iv)",0,QFileDialog::DontResolveSymlinks);
2279 SoGroup * standardisedRoot(0);
2280 if ( rootnode->getTypeId().isDerivedFrom(SoGroup::getClassTypeId()))
◆ dumpSceneToVRMLFile()
void VP1ExaminerViewer::dumpSceneToVRMLFile |
( |
QString |
filename = "" | ) |
|
Definition at line 2290 of file VP1ExaminerViewer.cxx.
2297 QWidget *
w = getWidget();
2304 filename = QFileDialog::getSaveFileName(
w,
"Select output file",
2306 "VRML2.0/X3D files (*.wrl)",0,QFileDialog::DontResolveSymlinks);
2314 SoGroup * standardisedRoot(0);
2315 if ( rootnode->getTypeId().isDerivedFrom(SoGroup::getClassTypeId()))
◆ fadeLastRecordedFrameToCurrent()
void VP1ExaminerViewer::fadeLastRecordedFrameToCurrent |
( |
double |
time_seconds | ) |
|
Definition at line 3144 of file VP1ExaminerViewer.cxx.
3148 QString lastfile, nextfile;
3152 lastfile, nextfile );
3154 QImage img0(lastfile);
3156 if (lastfile.isEmpty()||img0.isNull()) {
3160 if (nextfile.isEmpty())
3170 for (
int i = 0;
i < nTransitionFrames; ++
i) {
3171 double fadefact((
i+1.0)/(nTransitionFrames+1.0));
◆ getAnaglyphStereoColorMasksSlot()
void VP1ExaminerViewer::getAnaglyphStereoColorMasksSlot |
( |
SbBool |
left[3], |
|
|
SbBool |
right[3] |
|
) |
| |
◆ getSceneGraph()
SoNode * VP1ExaminerViewer::getSceneGraph |
( |
| ) |
|
|
virtual |
◆ getSnapShotFromCamState()
QPixmap VP1ExaminerViewer::getSnapShotFromCamState |
( |
bool |
camStateIsPerspective, |
|
|
QByteArray |
camState, |
|
|
int |
width, |
|
|
int |
height, |
|
|
bool |
transp = false |
|
) |
| |
Definition at line 1788 of file VP1ExaminerViewer.cxx.
1791 SoCamera * cam = getCamera();
1794 bool notifyenabled = cam->enableNotify(
false);
1798 if (currentPersp!=camStateIsPerspective)
1802 if (currentPersp!=camStateIsPerspective)
1806 if (notifyenabled) {
1807 cam->enableNotify(
true);
◆ getStereoOffsetSlot()
float VP1ExaminerViewer::getStereoOffsetSlot |
( |
| ) |
|
◆ getStereoTypeSlot()
SoQtViewer::StereoType VP1ExaminerViewer::getStereoTypeSlot |
( |
void |
| ) |
const |
◆ isAntiAlias()
bool VP1ExaminerViewer::isAntiAlias |
( |
| ) |
const |
◆ launchStereoEditor()
void VP1ExaminerViewer::launchStereoEditor |
( |
| ) |
|
◆ leftWheelFinish()
void VP1ExaminerViewer::leftWheelFinish |
( |
| ) |
|
|
protectedvirtual |
◆ leftWheelMotion()
void VP1ExaminerViewer::leftWheelMotion |
( |
float |
val | ) |
|
|
protectedvirtual |
◆ leftWheelStart()
void VP1ExaminerViewer::leftWheelStart |
( |
| ) |
|
|
protectedvirtual |
◆ operator=()
◆ processSoEvent()
SbBool VP1ExaminerViewer::processSoEvent |
( |
const SoEvent *const |
event | ) |
|
|
protectedvirtual |
Definition at line 1391 of file VP1ExaminerViewer.cxx.
1396 if (
evt->getTypeId().isDerivedFrom(SoKeyboardEvent::getClassTypeId())) {
1407 if (SO_KEY_PRESS_EVENT(
evt,SoKeyboardEvent::V)) {
1411 if (SO_KEY_PRESS_EVENT(
evt,SoKeyboardEvent::Q))
1422 if (SO_KEY_PRESS_EVENT(
evt,SoKeyboardEvent::O)) {
1427 if (SO_KEY_PRESS_EVENT(
evt,SoKeyboardEvent::M)) {
1440 }
else if (
evt->getTypeId().isDerivedFrom(SoMouseButtonEvent::getClassTypeId())) {
1443 const SoMouseButtonEvent * ev_mouse =
static_cast<const SoMouseButtonEvent*
>(
evt);
1444 if ((ev_mouse->getButton() == SoMouseButtonEvent::BUTTON2)) {
1445 if (ev_mouse->getState() == SoButtonEvent::DOWN) {
1453 return SoQtExaminerViewer::processSoEvent(
evt);
◆ produceEPSImage()
void VP1ExaminerViewer::produceEPSImage |
( |
QString |
filename = "" | ) |
|
Definition at line 2374 of file VP1ExaminerViewer.cxx.
2376 QWidget *
w = getWidget();
2382 filename = QFileDialog::getSaveFileName(
w,
"Select output file",
2384 "Encapsulated Postscript files (*.eps)",0,QFileDialog::DontResolveSymlinks);
2402 buffsize += 1024*1024;
2410 GL_RGBA, 0, NULL,0, 0, 0,
◆ produceSVGImage()
void VP1ExaminerViewer::produceSVGImage |
( |
QString |
filename = "" | ) |
|
Definition at line 2326 of file VP1ExaminerViewer.cxx.
2328 QWidget *
w = getWidget();
2334 filename = QFileDialog::getSaveFileName(
w,
"Select output file",
2336 "Scalable Vector Graphics files (*.svg)",0,QFileDialog::DontResolveSymlinks);
2351 SoNode *rootA =
static_cast<SoNode*
>(SoQtRenderArea::getSceneGraph());
2352 if (!rootA )
return;
2353 SoNode *cam =
static_cast<SoNode*
>(this->getCamera());
2354 if ( ! cam )
return;
2358 assert(
search.getPath());
2359 SoNode* hiddenRoot =
2360 static_cast<SoFullPath *
>(
search.getPath())->getNodeFromTail(1);
2362 const SbViewportRegion& vpRegion = getViewportRegion();
2366 action->enableFileWriting();
2367 action->apply(hiddenRoot);
2368 action->disableFileWriting();
◆ removeDecorationMenuOption()
void VP1ExaminerViewer::removeDecorationMenuOption |
( |
| ) |
|
|
virtual |
Definition at line 1377 of file VP1ExaminerViewer.cxx.
1384 int id = prefmenu->getMenuItem(
"decoration");
1386 prefmenu->removeMenuItem(
id);
◆ resetCamera()
void VP1ExaminerViewer::resetCamera |
( |
| ) |
|
◆ restoreFromState()
void VP1ExaminerViewer::restoreFromState |
( |
QByteArray |
ba_state | ) |
|
|
virtual |
Definition at line 764 of file VP1ExaminerViewer.cxx.
769 QBuffer
buffer(&ba_state);
770 buffer.open(QIODevice::ReadOnly);
771 QDataStream state(&
buffer);
775 if (version<0||version>6) {
776 VP1Msg::messageDebug(
"VP1ExaminerViewer Warning: Input state data is in wrong format - ignoring!");
784 if (bgdcol.isValid())
798 state >> isperspective;
803 if (getCamera()&&ba_cam!=QByteArray())
808 bool isdeco, isheadlight, isviewing, decoremoved;
809 state >> isdeco;
if (isdeco!=isDecoration()) setDecoration(isdeco);
810 state >> isheadlight;
if (isheadlight!=isHeadlight()) setHeadlight(isheadlight);
811 state >> isviewing;
if (isviewing!=isViewing())
setViewing(isviewing);
814 +
str(isdeco)+
", "+
str(isheadlight)+
", "+
str(isviewing)+
", "+
str(decoremoved)+
")");
818 SbBool smoothing;
int numPasses;
836 int idrawstyle_still, idrawstyle_interactive;
837 state >> idrawstyle_still;
838 state >> idrawstyle_interactive;
887 QList<QByteArray> persistifiedViews;
888 state >> persistifiedViews;
889 for(
const QByteArray& ba_pv : persistifiedViews) {
890 Imp::StoredView
sv(ba_pv);
903 if (ba!=QByteArray()) {
◆ rightWheelFinish()
void VP1ExaminerViewer::rightWheelFinish |
( |
| ) |
|
|
protectedvirtual |
◆ rightWheelMotion()
void VP1ExaminerViewer::rightWheelMotion |
( |
float |
val | ) |
|
|
protectedvirtual |
◆ rightWheelStart()
void VP1ExaminerViewer::rightWheelStart |
( |
| ) |
|
|
protectedvirtual |
◆ saveState()
QByteArray VP1ExaminerViewer::saveState |
( |
| ) |
|
|
virtual |
Definition at line 638 of file VP1ExaminerViewer.cxx.
643 QByteArray byteArray;
644 QBuffer
buffer(&byteArray);
645 buffer.open(QIODevice::WriteOnly);
659 if (getBufferingType()==BUFFER_SINGLE)
661 else if (getBufferingType()==BUFFER_INTERACTIVE)
668 out << isperspective;
673 const bool isdeco(isDecoration()), isheadlight(isHeadlight()),isviewing(isViewing());
694 out << idrawstyle_still;
695 out << idrawstyle_interactive;
739 QList<QByteArray> persistifiedViews;
741 persistifiedViews <<
sv.persistifiedState();
742 out << persistifiedViews;
◆ setAmbientLight()
void VP1ExaminerViewer::setAmbientLight |
( |
int |
a | ) |
|
◆ setAnaglyphStereoColorMasksSlot()
void VP1ExaminerViewer::setAnaglyphStereoColorMasksSlot |
( |
const SbBool |
left[3], |
|
|
const SbBool |
right[3] |
|
) |
| |
◆ setAntiAlias()
void VP1ExaminerViewer::setAntiAlias |
( |
bool |
b | ) |
|
◆ setAntialiasing()
void VP1ExaminerViewer::setAntialiasing |
( |
SbBool |
smoothing, |
|
|
int |
numPasses |
|
) |
| |
|
virtual |
Definition at line 1648 of file VP1ExaminerViewer.cxx.
1652 SoQtExaminerViewer::setAntialiasing(smoothing, numPasses);
1668 bool printWarning =
false;
1670 #ifndef BUILDVP1LIGHT
1671 env_aa =
std::getenv(
"VP1_ADVANCED_ANTIALIASING");
1674 if(antialiasingIsOn){
1680 if (env_aa != NULL) {
1681 std::string env_aa_string( env_aa );
1682 if(env_aa_string ==
"1") {
1685 if ( !
std::getenv(
"VP1_ADVANCED_ANTIALIASING_PRINTMSG")) {
1686 VP1Msg::messageWarningRed(
"You switched ON advanced anti-aliasing. That's very good, but please notice that this method DOES NOT WORK on LXPLUS machines, currently, because of their old graphics drivers! If you are on LXPLUS, this will likely freeze VP1... If that's the case, please restart VP1 without the '-advanced-aa' flag.");
1688 ::setenv(
"VP1_ADVANCED_ANTIALIASING_PRINTMSG",
"1", 1);
1694 VP1Msg::message(
"Sep 2017: AA is now done using a new technique so please let hn-atlas-vp1-help@cern.ch know of any problems.");
1697 if (getGLRenderAction()->isSmoothing() != smoothing)
1698 getGLRenderAction()->setSmoothing(smoothing);
1701 #if SOQT_MAJOR_VERSION > 1 || (SOQT_MAJOR_VERSION == 1 && SOQT_MINOR_VERSION >= 5)
1702 if (getSampleBuffers() != buffers)
1703 setSampleBuffers(buffers);
1706 VP1Msg::message(
"Multisampling is not supported by SoQT < 1.5, this anti-aliasing mode is disabled");
1711 getGLRenderAction()->setSmoothing(smoothing);
1712 setSampleBuffers(0);
1716 printWarning =
true;
1720 printWarning =
true;
1724 VP1Msg::messageWarningRed(
"Anti-aliasing is using low-quality mode only, because of problems with the graphic drivers installed on LXPLUS machines. If you are not running VP1 on LXPLUS machine (for example, if you are running it on a custom SLC6 machine), you can start VP1 again using the command-line flag '-advanced-aa'.");
◆ setBufferingType()
void VP1ExaminerViewer::setBufferingType |
( |
SoQtViewer::BufferType |
bt | ) |
|
|
virtual |
◆ setCameraType()
void VP1ExaminerViewer::setCameraType |
( |
SoType |
type | ) |
|
|
virtual |
Definition at line 1480 of file VP1ExaminerViewer.cxx.
1484 if (rightWheelLabel)
1485 rightWheelLabel->setUpdatesEnabled(
false);
1486 SoQtExaminerViewer::setCameraType(
type);
1487 setRightWheelString(
"Zoom");
1488 if (rightWheelLabel) {
1489 rightWheelLabel->setVisible(
true);
1490 rightWheelLabel->setUpdatesEnabled(
true);
◆ setDrawStyle()
void VP1ExaminerViewer::setDrawStyle |
( |
SoQtViewer::DrawType |
t, |
|
|
SoQtViewer::DrawStyle |
s |
|
) |
| |
|
virtual |
◆ setSceneGraph()
void VP1ExaminerViewer::setSceneGraph |
( |
SoNode * |
n | ) |
|
|
virtual |
◆ setSeekMode()
void VP1ExaminerViewer::setSeekMode |
( |
SbBool |
enable | ) |
|
|
virtual |
◆ setStereoOffsetSlot()
void VP1ExaminerViewer::setStereoOffsetSlot |
( |
float |
offset | ) |
|
◆ setStereoTypeSlot()
SbBool VP1ExaminerViewer::setStereoTypeSlot |
( |
SoQtViewer::StereoType |
type | ) |
|
◆ setTransparencyType()
void VP1ExaminerViewer::setTransparencyType |
( |
SoGLRenderAction::TransparencyType |
t | ) |
|
|
virtual |
◆ setViewing()
void VP1ExaminerViewer::setViewing |
( |
SbBool |
enable | ) |
|
|
virtual |
◆ showPopupMenu()
void VP1ExaminerViewer::showPopupMenu |
( |
| ) |
|
|
virtual |
Definition at line 2439 of file VP1ExaminerViewer.cxx.
2468 int newamb = QInputDialog::getInt(getWidget(),
"Change ambient light",
2469 "New ambient light percentage:",
2525 if (
ds!=getDrawStyle(STILL))
2534 if (
ds!=getDrawStyle(INTERACTIVE))
2548 QString
name = selAct->data().toString();
2555 Imp::StoredView
sv(camState, camPerspective, snapShot,
name);
2558 bool replaced(
false);
2560 if (oldsv.name()==
name) {
2574 QString
name = selAct->data().toString();
2576 SoCamera * camera = getCamera();
2588 " to stored view, but can't get root and camera pointers");
2596 QString
name = selAct->data().toString();
2598 SoCamera * camera = getCamera();
2606 QByteArray ba =
sv.camState();
2613 " to stored view, but can't get root and camera pointers");
2620 QString
name = selAct->data().toString();
2665 int newwidth = QInputDialog::getInt(getWidget(),
"Change movie width",
2666 "New movie width:",
old,1,4000,1,&ok);
2667 if (ok&&
old!=newwidth) {
2678 int newheight = QInputDialog::getInt(getWidget(),
"Change movie height",
2679 "New movie height:",
old,1,4000,1,&ok);
2680 if (ok&&
old!=newheight) {
2691 int newfps = QInputDialog::getInt(getWidget(),
"Change movie FPS",
2692 "New movie frames per second:",
old,1,4000,1,&ok);
2693 if (ok&&
old!=newfps) {
2702 QString newoutdir = QFileDialog::getExistingDirectory ( getWidget(),
"Select movie frame output directory",
old);
2703 if (!newoutdir.isEmpty()&&
old!=newoutdir) {
2799 SoPerspectiveCamera * camera =
dynamic_cast<SoPerspectiveCamera*
>(getCamera());
2800 if (! (camera==NULL) ) {
2801 float current_value = camera->focalDistance.getValue();
2802 int newfocal = QInputDialog::getDouble(getWidget(),
2803 "Change focal length",
2804 "New focal length: ",
2810 if (ok && current_value != newfocal) {
2814 camera->focalDistance.setValue(newfocal);
◆ startCustomTour()
void VP1ExaminerViewer::startCustomTour |
( |
| ) |
|
◆ startTour()
void VP1ExaminerViewer::startTour |
( |
| ) |
|
◆ startTourEachEvent()
bool VP1ExaminerViewer::startTourEachEvent |
( |
| ) |
const |
◆ storeCameraParametersForReset()
void VP1ExaminerViewer::storeCameraParametersForReset |
( |
| ) |
|
◆ str() [1/30]
◆ str() [2/30]
static QString VP1String::str |
( |
const bool |
b | ) |
|
|
inlinestaticinherited |
Definition at line 53 of file VP1String.h.
53 {
return b?
"True":
"False"; }
◆ str() [3/30]
static QString VP1String::str |
( |
const char * |
c | ) |
|
|
inlinestaticinherited |
◆ str() [4/30]
static QString VP1String::str |
( |
const double & |
d | ) |
|
|
inlinestaticinherited |
◆ str() [5/30]
static QString VP1String::str |
( |
const float & |
f | ) |
|
|
inlinestaticinherited |
◆ str() [6/30]
◆ str() [7/30]
QString VP1String::str |
( |
const QColor & |
c | ) |
|
|
staticinherited |
Definition at line 30 of file VP1String.cxx.
32 return c.isValid() ?
c.name() :
"Invalid";
◆ str() [8/30]
template<class T >
static QString VP1String::str |
( |
const QFlags< T > & |
f | ) |
|
|
inlinestaticinherited |
◆ str() [9/30]
template<class T >
static QString VP1String::str |
( |
const QList< T > & |
t | ) |
|
|
inlinestaticinherited |
◆ str() [10/30]
static QString VP1String::str |
( |
const QString & |
s | ) |
|
|
inlinestaticinherited |
◆ str() [11/30]
QString VP1String::str |
( |
const SbColor & |
c | ) |
|
|
staticinherited |
◆ str() [12/30]
QString VP1String::str |
( |
const SbVec2d & |
v | ) |
|
|
staticinherited |
◆ str() [13/30]
QString VP1String::str |
( |
const SbVec2f & |
v | ) |
|
|
staticinherited |
◆ str() [14/30]
QString VP1String::str |
( |
const SbVec2s & |
v | ) |
|
|
staticinherited |
◆ str() [15/30]
QString VP1String::str |
( |
const SbVec3d & |
v | ) |
|
|
staticinherited |
◆ str() [16/30]
QString VP1String::str |
( |
const SbVec3f & |
v | ) |
|
|
staticinherited |
◆ str() [17/30]
QString VP1String::str |
( |
const SbVec3s & |
v | ) |
|
|
staticinherited |
◆ str() [18/30]
QString VP1String::str |
( |
const SbVec4d & |
v | ) |
|
|
staticinherited |
◆ str() [19/30]
QString VP1String::str |
( |
const SbVec4f & |
v | ) |
|
|
staticinherited |
◆ str() [20/30]
template<class T >
static QString VP1String::str |
( |
const T * |
t | ) |
|
|
inlinestaticinherited |
Definition at line 87 of file VP1String.h.
87 {
return str(
static_cast<const void*
>(
t)); }
◆ str() [21/30]
QString VP1String::str |
( |
const void * |
p | ) |
|
|
staticinherited |
Definition at line 48 of file VP1String.cxx.
54 return QString (
s.str().c_str());
◆ str() [22/30]
◆ str() [23/30]
static QString VP1String::str |
( |
int |
n | ) |
|
|
inlinestaticinherited |
◆ str() [24/30]
static QString VP1String::str |
( |
long |
n | ) |
|
|
inlinestaticinherited |
◆ str() [25/30]
static QString VP1String::str |
( |
qlonglong |
n | ) |
|
|
inlinestaticinherited |
◆ str() [26/30]
static QString VP1String::str |
( |
qulonglong |
n | ) |
|
|
inlinestaticinherited |
◆ str() [27/30]
static QString VP1String::str |
( |
short int |
n | ) |
|
|
inlinestaticinherited |
◆ str() [28/30]
static QString VP1String::str |
( |
uint |
n | ) |
|
|
inlinestaticinherited |
◆ str() [29/30]
static QString VP1String::str |
( |
ulong |
n | ) |
|
|
inlinestaticinherited |
◆ str() [30/30]
static QString VP1String::str |
( |
unsigned short int |
n | ) |
|
|
inlinestaticinherited |
◆ toggleCameraType()
void VP1ExaminerViewer::toggleCameraType |
( |
| ) |
|
|
virtual |
◆ viewAll()
void VP1ExaminerViewer::viewAll |
( |
| ) |
|
|
virtual |
◆ VP1ExaminerViewer_SignalCatcher
◆ m_d
Imp* VP1ExaminerViewer::m_d |
|
private |
◆ stereo_offset_camera
float VP1ExaminerViewer::stereo_offset_camera |
◆ stereo_offset_viewer
float VP1ExaminerViewer::stereo_offset_viewer |
◆ stereo_parallax_camera
float VP1ExaminerViewer::stereo_parallax_camera |
The documentation for this class was generated from the following files:
QAction * popup_tourSpeedMedium
QAction * action_movieoutdir
virtual void setViewing(SbBool enable)
QAction * popup_toEPSAction
QAction * popup_ambientLightAction
QPushButton * button_sethome
static bool deserializeSoCameraParameters(QByteArray &, SoCamera &)
float stereo_offset_viewer
virtual void removeDecorationMenuOption()
void takeTourButtonClicked()
void updatePopupMenuStates()
QAction * customtour_execute
static QImage renderToImage(VP1ExaminerViewer *ra, int pixels_x, int pixels_y, bool transparent_background=false, double actualRenderedSizeFact=1.0)
QAction * popup_tourSpeedVerySlow
bool decorationMenuRemoved
virtual void toggleCameraType()
QAction * popup_antiAliasAction
QList< QAction * > restoreViewActions
float rotZWheelMotion(float value, float oldvalue)
bool resetCamera_isPerspective
static void getLastAndNextFrameFileNames(const QString &outputdir, const QString &prefix, QString &lastOfExistingFiles, QString &nextAvailableFile)
void startAnimating(bool skipFirstFrame=false)
QAction * customtour_launcheditor
QList< QAction * > popup_transptype_actions
bool currentCamIsPerspective() const
virtual void setAntialiasing(SbBool smoothing, int numPasses)
float rotXWheelMotion(float value, float oldvalue)
int ambientLightPercentage
QAction * popup_resetCameraAction
void setState(const QByteArray &)
ROTATIONMODE rotationMode
Which mode is left wheel in?
void produceEPSImage(QString filename="")
QString movieFrameFileNamePrefix
QAction * action_moviewidth
QAction * popup_focal_value_action
virtual void setTransparencyType(SoGLRenderAction::TransparencyType)
static QString str(const QString &s)
void search(TDirectory *td, const std::string &s, std::string cwd, node *n)
recursive directory search for TH1 and TH2 and TProfiles
#define GL2PS_DRAW_BACKGROUND
bool tourAvailable() const
QAction * popup_tourReturnToStartAction
QPushButton * button_viewall
void produceSVGImage(QString filename="")
void dumpSceneToFile(QString filename="")
QAction * popup_tourLoopTwice
unsigned long getColor(unsigned int r, unsigned int g, unsigned int b)
static int drawStyleToInt(SoQtViewer::DrawStyle)
static QString transparencyType2PrettyString(SoGLRenderAction::TransparencyType)
virtual void setBufferingType(SoQtViewer::BufferType)
static QString defaultFileSelectDirectory()
bool fitsCurrentCamType(const StoredView &sv)
QList< QAction * > zoomToViewActions
QAction * popup_tourPartsMuon
virtual SoNode * getSceneGraph()
QAction * popup_tourPartsInDet
void dumpSceneToVRMLFile(QString filename="")
QByteArray resetCamera_state
float stereo_parallax_camera
QList< QAction * > popup_drawstyle_interactive_actions
QAction * popup_tourExecute
QByteArray currentCameraState() const
QAction * action_movieenabled
static SbColor qcol2sbcol(const QColor &)
QPushButton * button_togglecamera
static bool expertSettingIsOn(const QString &type, const QString &name)
AnimationSequence & sequence()
bool tourIsPerspective() const
QAction * popup_bgdColAction
QAction * popup_tourSpeedVeryFast
QAction * stereo_launcheditor
void updateEnvironmentNode()
void updateMovieMenuVisuals()
QList< StoredView > storedViews
static QString viewerDrawStyle2PrettyString(SoQtViewer::DrawStyle)
QAction * popup_headLightAction
virtual void setDrawStyle(SoQtViewer::DrawType, SoQtViewer::DrawStyle)
static QColor sbcol2qcol(const SbColor &)
void storedViewsChanged()
void setAmbientLight(int)
QAction * popup_tourSpeedSlow
VP1CustomStereoEditor * customstereoeditor
static VP1CameraHelper * animatedZoomToCameraState(SoCamera *camera, SoGroup *sceneroot, const QByteArray &camstate, double duration_in_secs=1.0, double clipVolPercent=100.0, double lastClipVolPercent=100.0, bool varySpeed=true, bool forceCircular=false)
QAction * action_movieheight
static int transparencyTypeToInt(SoGLRenderAction::TransparencyType)
static void messageVerbose(const QString &)
void updateAmbientLightText()
QAction * popup_tourSpeedFast
QAction * popup_tourLoopThrice
void fadeLastRecordedFrameToCurrent(double time_seconds)
QList< QAction * > popup_drawstyle_still_actions
QAction * action_moviefps
QAction * popup_tourLoopOnce
QPushButton * button_home
float stereo_offset_camera
QList< QAction * > storeViewActions
static QImage fadeImage(QImage img0, QImage img1, double fadefact)
static bool writeGraphToFile(SoNode *root, const QString &filename)
static SoQtViewer::DrawStyle intToViewerDrawStyle(int)
QAction * popup_toSVGAction
static SoQtViewer::DrawStyle intToDrawStyle(int)
QAction * popup_tourLoopForever
QAction * popup_tourPartsCalo
static void messageDebug(const QString &)
std::string getenv(const std::string &variableName)
get an environment variable
QAction * popup_hidedecorationsaction
float getStereoOffsetSlot()
static void message(const QString &, IVP1System *sys=0)
QAction * popup_tourPartsVertex
SoGL2PSAction inherits Inventor/SoGLRenderAction.
QByteArray customtoureditorState
QAction * popup_dumpSceneAction
static SoGLRenderAction::TransparencyType intToTransparencyType(int)
static SoGroup * convertToStandardScene(SoGroup *)
QList< QAction * > deleteViewActions
QAction * action_moviefadetocurrentview
void applyMovieSettingsToAnimationSequencer()
static QPixmap renderToPixmap(VP1ExaminerViewer *ra, int pixels_x, int pixels_y, bool transparent_background=false, double actualRenderedSizeFact=1.0)
static void setCustomTourEditor(VP1CustomTourEditor *editor)
SbVec2f fixedDistanceClipPlanesCB(void *data, const SbVec2f &nearfar)
set the clipping strategy and fix the clipping
void disableObjectWhenTourNotAvailable(QObject *)
QPushButton * button_examine
AnimationSequencer animationSequencer
VP1CustomTourEditor * customtoureditor
void addTourToAnimationSequencer(AnimationSequencer &, bool jumpDirectlyToFirstFrame) const
virtual void showPopupMenu()
QAction * popup_tourStartEachEvent
SoGroup * actualSceneGraph
GL2PSDLL_API GLint gl2psBeginPage(const char *title, const char *producer, GLint viewport[4], GLint format, GLint sort, GLint options, GLint colormode, GLint colorsize, GL2PSrgba *colormap, GLint nr, GLint ng, GLint nb, GLint buffersize, FILE *stream, const char *filename)
static void messageWarningRed(const QString &str, IVP1System *sys=0)
static bool writeGraphToVRMLFile(SoNode *root, const QString &filename)
#define GL2PS_USE_CURRENT_VIEWPORT
QAction * popup_dumpSceneVRMLAction
static void initClass()
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
static QByteArray serializeSoCameraParameters(const SoCamera &)
SoEnvironment * environmentNode
#define GL2PS_OCCLUSION_CULL
QPushButton * button_interact
QPushButton * button_seek
GL2PSDLL_API GLint gl2psEndPage(void)