 |
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 921 of file VP1ExaminerViewer.cxx.
923 #if SOQT_MAJOR_VERSION <= 1 && SOQT_MINOR_VERSION <= 4 && SOQT_MICRO_VERSION <= 1
928 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 932 of file VP1ExaminerViewer.cxx.
936 SoQtExaminerViewer::createViewerButtons(
parent,buttonlist);
939 if (buttonlist->getLength()==7) {
949 m_d->
button_interact->setToolTip(
"Pick mode (ESC/M toggles). Use this in order to select objects.");
950 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).");
954 m_d->
button_seek->setToolTip(
"Seek to point (S). Sets cameras rotation centre to the clicked point and zooms towards it.");
955 m_d->
button_togglecamera->setToolTip(
"Toggle (C) camera between perspective (P) and orthographic (O) mode.");
960 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 2255 of file VP1ExaminerViewer.cxx.
2263 QWidget *
w = getWidget();
2270 filename = QFileDialog::getSaveFileName(
w,
"Select output file",
2272 "Inventor files (*.iv)",0,QFileDialog::DontResolveSymlinks);
2280 SoGroup * standardisedRoot(0);
2281 if ( rootnode->getTypeId().isDerivedFrom(SoGroup::getClassTypeId()))
◆ dumpSceneToVRMLFile()
void VP1ExaminerViewer::dumpSceneToVRMLFile |
( |
QString |
filename = "" | ) |
|
Definition at line 2291 of file VP1ExaminerViewer.cxx.
2298 QWidget *
w = getWidget();
2305 filename = QFileDialog::getSaveFileName(
w,
"Select output file",
2307 "VRML2.0/X3D files (*.wrl)",0,QFileDialog::DontResolveSymlinks);
2315 SoGroup * standardisedRoot(0);
2316 if ( rootnode->getTypeId().isDerivedFrom(SoGroup::getClassTypeId()))
◆ fadeLastRecordedFrameToCurrent()
void VP1ExaminerViewer::fadeLastRecordedFrameToCurrent |
( |
double |
time_seconds | ) |
|
Definition at line 3145 of file VP1ExaminerViewer.cxx.
3149 QString lastfile, nextfile;
3153 lastfile, nextfile );
3155 QImage img0(lastfile);
3157 if (lastfile.isEmpty()||img0.isNull()) {
3161 if (nextfile.isEmpty())
3171 for (
int i = 0;
i < nTransitionFrames; ++
i) {
3172 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 1789 of file VP1ExaminerViewer.cxx.
1792 SoCamera * cam = getCamera();
1795 bool notifyenabled = cam->enableNotify(
false);
1799 if (currentPersp!=camStateIsPerspective)
1803 if (currentPersp!=camStateIsPerspective)
1807 if (notifyenabled) {
1808 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 1392 of file VP1ExaminerViewer.cxx.
1397 if (
evt->getTypeId().isDerivedFrom(SoKeyboardEvent::getClassTypeId())) {
1408 if (SO_KEY_PRESS_EVENT(
evt,SoKeyboardEvent::V)) {
1412 if (SO_KEY_PRESS_EVENT(
evt,SoKeyboardEvent::Q))
1423 if (SO_KEY_PRESS_EVENT(
evt,SoKeyboardEvent::O)) {
1428 if (SO_KEY_PRESS_EVENT(
evt,SoKeyboardEvent::M)) {
1441 }
else if (
evt->getTypeId().isDerivedFrom(SoMouseButtonEvent::getClassTypeId())) {
1444 const SoMouseButtonEvent * ev_mouse =
static_cast<const SoMouseButtonEvent*
>(
evt);
1445 if ((ev_mouse->getButton() == SoMouseButtonEvent::BUTTON2)) {
1446 if (ev_mouse->getState() == SoButtonEvent::DOWN) {
1454 return SoQtExaminerViewer::processSoEvent(
evt);
◆ produceEPSImage()
void VP1ExaminerViewer::produceEPSImage |
( |
QString |
filename = "" | ) |
|
Definition at line 2375 of file VP1ExaminerViewer.cxx.
2377 QWidget *
w = getWidget();
2383 filename = QFileDialog::getSaveFileName(
w,
"Select output file",
2385 "Encapsulated Postscript files (*.eps)",0,QFileDialog::DontResolveSymlinks);
2403 buffsize += 1024*1024;
2411 GL_RGBA, 0, NULL,0, 0, 0,
◆ produceSVGImage()
void VP1ExaminerViewer::produceSVGImage |
( |
QString |
filename = "" | ) |
|
Definition at line 2327 of file VP1ExaminerViewer.cxx.
2329 QWidget *
w = getWidget();
2335 filename = QFileDialog::getSaveFileName(
w,
"Select output file",
2337 "Scalable Vector Graphics files (*.svg)",0,QFileDialog::DontResolveSymlinks);
2352 SoNode *rootA =
static_cast<SoNode*
>(SoQtRenderArea::getSceneGraph());
2353 if (!rootA )
return;
2354 SoNode *cam =
static_cast<SoNode*
>(this->getCamera());
2355 if ( ! cam )
return;
2359 assert(
search.getPath());
2360 SoNode* hiddenRoot =
2361 static_cast<SoFullPath *
>(
search.getPath())->getNodeFromTail(1);
2363 const SbViewportRegion& vpRegion = getViewportRegion();
2367 action->enableFileWriting();
2368 action->apply(hiddenRoot);
2369 action->disableFileWriting();
◆ removeDecorationMenuOption()
void VP1ExaminerViewer::removeDecorationMenuOption |
( |
| ) |
|
|
virtual |
Definition at line 1378 of file VP1ExaminerViewer.cxx.
1385 int id = prefmenu->getMenuItem(
"decoration");
1387 prefmenu->removeMenuItem(
id);
◆ resetCamera()
void VP1ExaminerViewer::resetCamera |
( |
| ) |
|
◆ restoreFromState()
void VP1ExaminerViewer::restoreFromState |
( |
QByteArray |
ba_state | ) |
|
|
virtual |
Definition at line 765 of file VP1ExaminerViewer.cxx.
770 QBuffer
buffer(&ba_state);
771 buffer.open(QIODevice::ReadOnly);
772 QDataStream state(&
buffer);
776 if (version<0||version>6) {
777 VP1Msg::messageDebug(
"VP1ExaminerViewer Warning: Input state data is in wrong format - ignoring!");
785 if (bgdcol.isValid())
799 state >> isperspective;
804 if (getCamera()&&ba_cam!=QByteArray())
809 bool isdeco, isheadlight, isviewing, decoremoved;
810 state >> isdeco;
if (isdeco!=isDecoration()) setDecoration(isdeco);
811 state >> isheadlight;
if (isheadlight!=isHeadlight()) setHeadlight(isheadlight);
812 state >> isviewing;
if (isviewing!=isViewing())
setViewing(isviewing);
815 +
str(isdeco)+
", "+
str(isheadlight)+
", "+
str(isviewing)+
", "+
str(decoremoved)+
")");
819 SbBool smoothing;
int numPasses;
837 int idrawstyle_still, idrawstyle_interactive;
838 state >> idrawstyle_still;
839 state >> idrawstyle_interactive;
888 QList<QByteArray> persistifiedViews;
889 state >> persistifiedViews;
890 for(
const QByteArray& ba_pv : persistifiedViews) {
891 Imp::StoredView
sv(ba_pv);
904 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();
743 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 1649 of file VP1ExaminerViewer.cxx.
1653 SoQtExaminerViewer::setAntialiasing(smoothing, numPasses);
1669 bool printWarning =
false;
1671 #ifndef BUILDVP1LIGHT
1672 env_aa =
std::getenv(
"VP1_ADVANCED_ANTIALIASING");
1675 if(antialiasingIsOn){
1681 if (env_aa != NULL) {
1682 std::string env_aa_string( env_aa );
1683 if(env_aa_string ==
"1") {
1686 if ( !
std::getenv(
"VP1_ADVANCED_ANTIALIASING_PRINTMSG")) {
1687 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.");
1689 ::setenv(
"VP1_ADVANCED_ANTIALIASING_PRINTMSG",
"1", 1);
1695 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.");
1698 if (getGLRenderAction()->isSmoothing() != smoothing)
1699 getGLRenderAction()->setSmoothing(smoothing);
1702 #if SOQT_MAJOR_VERSION > 1 || (SOQT_MAJOR_VERSION == 1 && SOQT_MINOR_VERSION >= 5)
1703 if (getSampleBuffers() != buffers)
1704 setSampleBuffers(buffers);
1707 VP1Msg::message(
"Multisampling is not supported by SoQT < 1.5, this anti-aliasing mode is disabled");
1712 getGLRenderAction()->setSmoothing(smoothing);
1713 setSampleBuffers(0);
1717 printWarning =
true;
1721 printWarning =
true;
1725 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 1481 of file VP1ExaminerViewer.cxx.
1485 if (rightWheelLabel)
1486 rightWheelLabel->setUpdatesEnabled(
false);
1487 SoQtExaminerViewer::setCameraType(
type);
1488 setRightWheelString(
"Zoom");
1489 if (rightWheelLabel) {
1490 rightWheelLabel->setVisible(
true);
1491 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 2440 of file VP1ExaminerViewer.cxx.
2469 int newamb = QInputDialog::getInt(getWidget(),
"Change ambient light",
2470 "New ambient light percentage:",
2526 if (
ds!=getDrawStyle(STILL))
2535 if (
ds!=getDrawStyle(INTERACTIVE))
2549 QString
name = selAct->data().toString();
2556 Imp::StoredView
sv(camState, camPerspective, snapShot,
name);
2559 bool replaced(
false);
2561 if (oldsv.name()==
name) {
2575 QString
name = selAct->data().toString();
2577 SoCamera * camera = getCamera();
2589 " to stored view, but can't get root and camera pointers");
2597 QString
name = selAct->data().toString();
2599 SoCamera * camera = getCamera();
2607 QByteArray ba =
sv.camState();
2614 " to stored view, but can't get root and camera pointers");
2621 QString
name = selAct->data().toString();
2666 int newwidth = QInputDialog::getInt(getWidget(),
"Change movie width",
2667 "New movie width:",
old,1,4000,1,&ok);
2668 if (ok&&
old!=newwidth) {
2679 int newheight = QInputDialog::getInt(getWidget(),
"Change movie height",
2680 "New movie height:",
old,1,4000,1,&ok);
2681 if (ok&&
old!=newheight) {
2692 int newfps = QInputDialog::getInt(getWidget(),
"Change movie FPS",
2693 "New movie frames per second:",
old,1,4000,1,&ok);
2694 if (ok&&
old!=newfps) {
2703 QString newoutdir = QFileDialog::getExistingDirectory ( getWidget(),
"Select movie frame output directory",
old);
2704 if (!newoutdir.isEmpty()&&
old!=newoutdir) {
2800 SoPerspectiveCamera * camera =
dynamic_cast<SoPerspectiveCamera*
>(getCamera());
2801 if (! (camera==NULL) ) {
2802 float current_value = camera->focalDistance.getValue();
2803 int newfocal = QInputDialog::getDouble(getWidget(),
2804 "Change focal length",
2805 "New focal length: ",
2811 if (ok && current_value != newfocal) {
2815 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)