#include "PreCompiled.h"#include <Inventor/nodes/SoMaterial.h>#include <Inventor/nodes/SoShapeHints.h>#include <Inventor/SbClip.h>#include <Inventor/nodes/SoCoordinate3.h>#include <Inventor/nodes/SoComplexity.h>#include <Inventor/nodes/SoTexture3.h>#include <Inventor/nodes/SoTextureCoordinate3.h>#include <Inventor/nodes/SoFaceSet.h>#include <Inventor/nodes/SoLineSet.h>#include <Inventor/nodes/SoBaseColor.h>#include <Inventor/draggers/SoTransformerDragger.h>#include <float.h>#include <cstring>#include "../Base/Console.h"#include "View3DInventorExamples.h"#include <Inventor/SbPlane.h>#include <Inventor/Qt/SoQt.h>#include <Inventor/Qt/viewers/SoQtExaminerViewer.h>#include <Inventor/SoDB.h>#include <Inventor/actions/SoSearchAction.h>#include <Inventor/manips/SoPointLightManip.h>#include <Inventor/nodes/SoSeparator.h>#include <Inventor/SbBasic.h>#include <Inventor/nodes/SoTexture2.h>#include <Inventor/nodes/SoCube.h>#include <Inventor/sensors/SoTimerSensor.h>Go to the source code of this file.
Functions | |
| void | AnimationTexture (SoSeparator *root) |
| void | doClipping (SbVec3f trans, SbRotation rot) |
| void | draggerCB (void *data, SoDragger *dragger) |
| unsigned char * | generateTexture (int w, int h, int d) |
| void | julia (double crr, double cii, float zoom, int width, int height, int mult, unsigned char *bmp, int n) |
| void | LightManip (SoSeparator *root) |
| SoTexture2 * | texture () |
| void | Texture3D (SoSeparator *root) |
| static void | timersensorcallback (void *data, SoSensor *) |
Variables | |
| unsigned char | bitmap [texturewidth *textureheight] |
| double | ci = 0.43 |
| double | cr = 0.33 |
| static const char | scenegraph [] |
| const int | textureheight = 128 |
| const int | texturewidth = 128 |
| void AnimationTexture | ( | SoSeparator * | root | ) |
Definition at line 428 of file View3DInventorExamples.cpp.
References bitmap, ci, cr, julia(), texture(), textureheight, texturewidth, and timersensorcallback().
Referenced by Gui::View3DInventor::onMsg().
| void doClipping | ( | SbVec3f | trans, | |
| SbRotation | rot | |||
| ) |
Definition at line 91 of file View3DInventorExamples.cpp.
References draftTools::p, and draftTools::plane.
Referenced by draggerCB(), and Texture3D().
| void draggerCB | ( | void * | data, | |
| SoDragger * | dragger | |||
| ) |
Definition at line 201 of file View3DInventorExamples.cpp.
References doClipping().
Referenced by Texture3D().
| unsigned char* generateTexture | ( | int | w, | |
| int | h, | |||
| int | d | |||
| ) |
Definition at line 66 of file View3DInventorExamples.cpp.
References Py::abs(), bitmap, Py::int, k, M_PI, KDL::sin(), MovieTool::x, and MovieTool::y.
Referenced by Texture3D().
| void julia | ( | double | crr, | |
| double | cii, | |||
| float | zoom, | |||
| int | width, | |||
| int | height, | |||
| int | mult, | |||
| unsigned char * | bmp, | |||
| int | n | |||
| ) |
Definition at line 364 of file View3DInventorExamples.cpp.
References RobotExample::w, MovieTool::x, and MovieTool::y.
Referenced by AnimationTexture(), and timersensorcallback().
| void LightManip | ( | SoSeparator * | root | ) |
Definition at line 307 of file View3DInventorExamples.cpp.
References scenegraph.
Referenced by Gui::View3DInventor::onMsg().
| SoTexture2* texture | ( | ) |
Definition at line 389 of file View3DInventorExamples.cpp.
References bitmap, textureheight, and texturewidth.
Referenced by CmdTestImageNode::activated(), AnimationTexture(), DrawingGui::SvgView::drawBackground(), insertShapeFaces(), printShape(), Texture3D(), and ImageGui::ViewProviderImagePlane::ViewProviderImagePlane().
| void Texture3D | ( | SoSeparator * | root | ) |
Definition at line 207 of file View3DInventorExamples.cpp.
References doClipping(), draggerCB(), generateTexture(), and texture().
Referenced by Gui::View3DInventor::onMsg().
| static void timersensorcallback | ( | void * | data, | |
| SoSensor * | ||||
| ) | [static] |
Definition at line 400 of file View3DInventorExamples.cpp.
References ci, cr, and julia().
Referenced by AnimationTexture().
| unsigned char bitmap[texturewidth *textureheight] |
Definition at line 351 of file View3DInventorExamples.cpp.
Referenced by AnimationTexture(), generateTexture(), and texture().
| double ci = 0.43 |
Definition at line 347 of file View3DInventorExamples.cpp.
Referenced by AnimationTexture(), Mesh::Curvature::execute(), Gui::PolyClipSelection::popupMenu(), timersensorcallback(), Points::PropertyCurvatureList::transform(), and Mesh::PropertyCurvatureList::transform().
| double cr = 0.33 |
Definition at line 346 of file View3DInventorExamples.cpp.
Referenced by Base::InventorBuilder::addSingleArrow(), Base::Builder3D::addSingleArrow(), AnimationTexture(), Gui::TextEditor::resizeEvent(), and timersensorcallback().
const char scenegraph[] [static] |
"#Inventor V2.1 ascii\n" "Separator {\n" " DEF RedLight PointLight { location -10 -10 10 color 1 0 0 }\n" " DEF GreenLight PointLight { location -5 5 10 color 0 1 0 }\n" " DEF BlueLight PointLight { location 10 10 10 color 0 0 1 }\n" " Material { diffuseColor 0.5 0.5 0.5 specularColor 1 1 1 }\n" " Array {\n" " origin CENTER\n" " numElements1 3 separation1 5.5 0 0\n" " numElements2 3 separation2 0 5.5 0\n" "\n" " Sphere { radius 3 }\n" " }\n" "}\n"
Definition at line 292 of file View3DInventorExamples.cpp.
Referenced by LightManip().
| const int textureheight = 128 |
Definition at line 343 of file View3DInventorExamples.cpp.
Referenced by AnimationTexture(), and texture().
| const int texturewidth = 128 |
Definition at line 342 of file View3DInventorExamples.cpp.
Referenced by AnimationTexture(), and texture().
1.6.1