Changeset 3861
- Timestamp:
- Aug 8, 2013, 3:59:21 PM (11 years ago)
- Location:
- trunk/packages/vizservers/vtkvis
- Files:
-
- 6 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/vtkvis/Makefile.in
r3859 r3861 147 147 Molecule.cpp \ 148 148 Outline.cpp \ 149 Parallel piped.cpp \149 Parallelepiped.cpp \ 150 150 PolyData.cpp \ 151 151 Polygon.cpp \ … … 231 231 Molecule.o: Molecule.h MoleculeData.h GraphicsObject.h DataSet.h Renderer.h ColorMap.h Trace.h 232 232 Outline.o: Outline.h GraphicsObject.h DataSet.h Trace.h 233 Parallel piped.o: Parallelpiped.h Shape.h GraphicsObject.h DataSet.h Renderer.h Trace.h233 Parallelepiped.o: Parallelepiped.h Shape.h GraphicsObject.h DataSet.h Renderer.h Trace.h 234 234 PolyData.o: PolyData.h GraphicsObject.h DataSet.h Renderer.h Trace.h 235 235 Polygon.o: Polygon.h Shape.h GraphicsObject.h DataSet.h Renderer.h Trace.h … … 237 237 PseudoColor.o: PseudoColor.h GraphicsObject.h DataSet.h Renderer.h ColorMap.h Trace.h 238 238 ReadBuffer.o: ReadBuffer.h Trace.h 239 Renderer.o: Renderer.h RendererGraphicsObjs.h vtkRpCubeAxesActor.h vtkRpAxisFollower.h vtkRpAxisActor.h Math.h DataSet.h Arc.h Arrow.h Box.h Cone.h Contour2D.h Contour3D.h Cutplane.h Cylinder.h Disk.h Glyphs.h Group.h HeightMap.h Image.h LIC.h Line.h Molecule.h Outline.h Parallel piped.h PolyData.h Polygon.h PseudoColor.h Sphere.h Streamlines.h Text3D.h Volume.h Warp.h ColorMap.h Trace.h240 RendererCmd.o: Renderer.h RendererGraphicsObjs.h vtkRpCubeAxesActor.h vtkRpAxisFollower.h vtkRpAxisActor.h DataSet.h Arc.h Arrow.h Box.h Cone.h Contour2D.h Contour3D.h Cutplane.h Cylinder.h Disk.h Glyphs.h Group.h HeightMap.h Image.h LIC.h Line.h Molecule.h Outline.h Parallel piped.h PolyData.h Polygon.h PseudoColor.h Sphere.h Streamlines.h Text3D.h Volume.h Warp.h ColorMap.h ReadBuffer.h ResponseQueue.h Trace.h CmdProc.h PPMWriter.h TGAWriter.h241 RendererGraphicsObjs.o: Renderer.h RendererGraphicsObjs.h DataSet.h Arc.h Arrow.h Box.h Cone.h Contour2D.h Contour3D.h Cutplane.h Cylinder.h Disk.h Glyphs.h Group.h HeightMap.h Image.h LIC.h Line.h Molecule.h Outline.h Parallel piped.h PolyData.h Polygon.h PseudoColor.h Sphere.h Streamlines.h Text3D.h Volume.h Warp.h ColorMap.h Trace.h239 Renderer.o: Renderer.h RendererGraphicsObjs.h vtkRpCubeAxesActor.h vtkRpAxisFollower.h vtkRpAxisActor.h Math.h DataSet.h Arc.h Arrow.h Box.h Cone.h Contour2D.h Contour3D.h Cutplane.h Cylinder.h Disk.h Glyphs.h Group.h HeightMap.h Image.h LIC.h Line.h Molecule.h Outline.h Parallelepiped.h PolyData.h Polygon.h PseudoColor.h Sphere.h Streamlines.h Text3D.h Volume.h Warp.h ColorMap.h Trace.h 240 RendererCmd.o: Renderer.h RendererGraphicsObjs.h vtkRpCubeAxesActor.h vtkRpAxisFollower.h vtkRpAxisActor.h DataSet.h Arc.h Arrow.h Box.h Cone.h Contour2D.h Contour3D.h Cutplane.h Cylinder.h Disk.h Glyphs.h Group.h HeightMap.h Image.h LIC.h Line.h Molecule.h Outline.h Parallelepiped.h PolyData.h Polygon.h PseudoColor.h Sphere.h Streamlines.h Text3D.h Volume.h Warp.h ColorMap.h ReadBuffer.h ResponseQueue.h Trace.h CmdProc.h PPMWriter.h TGAWriter.h 241 RendererGraphicsObjs.o: Renderer.h RendererGraphicsObjs.h DataSet.h Arc.h Arrow.h Box.h Cone.h Contour2D.h Contour3D.h Cutplane.h Cylinder.h Disk.h Glyphs.h Group.h HeightMap.h Image.h LIC.h Line.h Molecule.h Outline.h Parallelepiped.h PolyData.h Polygon.h PseudoColor.h Sphere.h Streamlines.h Text3D.h Volume.h Warp.h ColorMap.h Trace.h 242 242 RenderServer.o: RenderServer.h RendererCmd.h Renderer.h vtkRpCubeAxesActor.h vtkRpAxisFollower.h vtkRpAxisActor.h ReadBuffer.h ResponseQueue.h Trace.h PPMWriter.h TGAWriter.h 243 243 ResponseQueue.o: ResponseQueue.h Trace.h -
trunk/packages/vizservers/vtkvis/Parallelepiped.cpp
r3860 r3861 17 17 #include <vtkCubeSource.h> 18 18 #include <vtkReverseSense.h> 19 #include <vtkVector.h> 19 20 20 #include "Parallel piped.h"21 #include "Parallelepiped.h" 21 22 #include "Trace.h" 22 23 23 24 using namespace VtkVis; 24 25 25 Parallel piped::Parallelpiped() :26 Parallelepiped::Parallelepiped() : 26 27 Shape() 27 28 { 28 29 } 29 30 30 Parallel piped::~Parallelpiped()31 Parallelepiped::~Parallelepiped() 31 32 { 32 TRACE("Deleting Parallel piped");33 TRACE("Deleting Parallelepiped"); 33 34 } 34 35 35 void Parallel piped::update()36 void Parallelepiped::update() 36 37 { 37 38 if (_box == NULL) { … … 65 66 66 67 /** 67 * \brief Create parallel piped from 3 basis vectors68 * \brief Create parallelepiped from 3 basis vectors 68 69 * 69 70 * This method expects the order of vectors to define a right-handed coordinate 70 71 * system, so ((vec1 cross vec2) dot vec3) should be positive. 71 72 */ 72 void Parallel piped::setVectors(double vec1[3], double vec2[3], double vec3[3])73 void Parallelepiped::setVectors(double vec1[3], double vec2[3], double vec3[3]) 73 74 { 75 vtkVector3d v1(vec1); 76 vtkVector3d v2(vec2); 77 vtkVector3d v3(vec3); 78 vtkVector3d tmp = v1.Cross(v2); 79 if (tmp.Dot(v3) < 0) { 80 // Got left-handed system, convert to right-handed 81 v2.Set(vec1[0], vec1[1], vec1[2]); 82 v1.Set(vec2[0], vec2[1], vec2[2]); 83 } 84 TRACE("v1: %g %g %g", v1[0], v1[1], v1[2]); 85 TRACE("v2: %g %g %g", v2[0], v2[1], v2[2]); 86 TRACE("v3: %g %g %g", v3[0], v3[1], v3[2]); 74 87 double matrix[16]; 75 88 memset(matrix, 0, sizeof(double)*16); 76 matrix[0] = v ec1[0];77 matrix[4] = v ec1[1];78 matrix[8] = v ec1[2];79 matrix[1] = v ec2[0];80 matrix[5] = v ec2[1];81 matrix[9] = v ec2[2];82 matrix[2] = v ec3[0];83 matrix[6] = v ec3[1];84 matrix[10] = v ec3[2];89 matrix[0] = v1[0]; 90 matrix[4] = v1[1]; 91 matrix[8] = v1[2]; 92 matrix[1] = v2[0]; 93 matrix[5] = v2[1]; 94 matrix[9] = v2[2]; 95 matrix[2] = v3[0]; 96 matrix[6] = v3[1]; 97 matrix[10] = v3[2]; 85 98 matrix[15] = 1; 86 99 _transform->SetMatrix(matrix); 87 100 } 88 101 89 void Parallel piped::flipNormals(bool state)102 void Parallelepiped::flipNormals(bool state) 90 103 { 91 104 if (_box == NULL || _pdMapper == NULL) -
trunk/packages/vizservers/vtkvis/Parallelepiped.h
r3860 r3861 6 6 */ 7 7 8 #ifndef VTKVIS_PARALLEL PIPED_H9 #define VTKVIS_PARALLEL PIPED_H8 #ifndef VTKVIS_PARALLELEPIPED_H 9 #define VTKVIS_PARALLELEPIPED_H 10 10 11 11 #include <vtkSmartPointer.h> … … 21 21 22 22 /** 23 * \brief VTK PolyData Parallel piped23 * \brief VTK PolyData Parallelepiped 24 24 * 25 * This class creates a mesh parallel piped25 * This class creates a mesh parallelepiped 26 26 */ 27 class Parallel piped : public Shape27 class Parallelepiped : public Shape 28 28 { 29 29 public: 30 Parallel piped();31 virtual ~Parallel piped();30 Parallelepiped(); 31 virtual ~Parallelepiped(); 32 32 33 33 virtual const char *getClassName() const 34 34 { 35 return "Parallel piped";35 return "Parallelepiped"; 36 36 } 37 37 -
trunk/packages/vizservers/vtkvis/Renderer.cpp
r3859 r3861 197 197 deleteAllGraphicsObjects<Molecule>(); 198 198 deleteAllGraphicsObjects<Outline>(); 199 deleteAllGraphicsObjects<Parallel piped>();199 deleteAllGraphicsObjects<Parallelepiped>(); 200 200 deleteAllGraphicsObjects<PolyData>(); 201 201 deleteAllGraphicsObjects<Polygon>(); … … 2437 2437 setGraphicsObjectAspect<Molecule>(aspectRatio); 2438 2438 setGraphicsObjectAspect<Outline>(aspectRatio); 2439 setGraphicsObjectAspect<Parallel piped>(aspectRatio);2439 setGraphicsObjectAspect<Parallelepiped>(aspectRatio); 2440 2440 setGraphicsObjectAspect<PolyData>(aspectRatio); 2441 2441 setGraphicsObjectAspect<Polygon>(aspectRatio); … … 3359 3359 mergeGraphicsObjectBounds<Molecule>(bounds, onlyVisible); 3360 3360 mergeGraphicsObjectBounds<Outline>(bounds, onlyVisible); 3361 mergeGraphicsObjectBounds<Parallel piped>(bounds, onlyVisible);3361 mergeGraphicsObjectBounds<Parallelepiped>(bounds, onlyVisible); 3362 3362 mergeGraphicsObjectBounds<PolyData>(bounds, onlyVisible); 3363 3363 mergeGraphicsObjectBounds<Polygon>(bounds, onlyVisible); … … 3432 3432 mergeGraphicsObjectUnscaledBounds<Outline>(bounds, onlyVisible); 3433 3433 mergeGraphicsObjectUnscaledBounds<PolyData>(bounds, onlyVisible); 3434 mergeGraphicsObjectUnscaledBounds<Parallel piped>(bounds, onlyVisible);3434 mergeGraphicsObjectUnscaledBounds<Parallelepiped>(bounds, onlyVisible); 3435 3435 mergeGraphicsObjectUnscaledBounds<Polygon>(bounds, onlyVisible); 3436 3436 mergeGraphicsObjectUnscaledBounds<PseudoColor>(bounds, onlyVisible); … … 4581 4581 setGraphicsObjectClippingPlanes<Molecule>(_activeClipPlanes); 4582 4582 setGraphicsObjectClippingPlanes<Outline>(_activeClipPlanes); 4583 setGraphicsObjectClippingPlanes<Parallel piped>(_activeClipPlanes);4583 setGraphicsObjectClippingPlanes<Parallelepiped>(_activeClipPlanes); 4584 4584 setGraphicsObjectClippingPlanes<PolyData>(_activeClipPlanes); 4585 4585 setGraphicsObjectClippingPlanes<Polygon>(_activeClipPlanes); -
trunk/packages/vizservers/vtkvis/Renderer.h
r3859 r3861 45 45 #include "Molecule.h" 46 46 #include "Outline.h" 47 #include "Parallel piped.h"47 #include "Parallelepiped.h" 48 48 #include "PolyData.h" 49 49 #include "Polygon.h" … … 810 810 const char *name, double range[2] = NULL); 811 811 812 // Parallel pipeds813 814 bool addParallel piped(const DataSetId& id, double vec1[3], double vec2[3], double vec3[3],815 bool flipNormals = false);812 // Parallelepipeds 813 814 bool addParallelepiped(const DataSetId& id, double vec1[3], double vec2[3], double vec3[3], 815 bool flipNormals = false); 816 816 817 817 // PolyData meshes … … 981 981 typedef std::tr1::unordered_map<DataSetId, Molecule *> MoleculeHashmap; 982 982 typedef std::tr1::unordered_map<DataSetId, Outline *> OutlineHashmap; 983 typedef std::tr1::unordered_map<DataSetId, Parallel piped *> ParallelpipedHashmap;983 typedef std::tr1::unordered_map<DataSetId, Parallelepiped *> ParallelepipedHashmap; 984 984 typedef std::tr1::unordered_map<DataSetId, PolyData *> PolyDataHashmap; 985 985 typedef std::tr1::unordered_map<DataSetId, Polygon *> PolygonHashmap; … … 1121 1121 MoleculeHashmap _molecules; 1122 1122 OutlineHashmap _outlines; 1123 Parallel pipedHashmap _parallelpipeds;1123 ParallelepipedHashmap _parallelepipeds; 1124 1124 PolyDataHashmap _polyDatas; 1125 1125 PolygonHashmap _polygons; -
trunk/packages/vizservers/vtkvis/RendererCmd.cpp
r3859 r3861 8559 8559 8560 8560 static int 8561 Parallel pipedAddOp(ClientData clientData, Tcl_Interp *interp, int objc,8562 Tcl_Obj *const *objv)8561 ParallelepipedAddOp(ClientData clientData, Tcl_Interp *interp, int objc, 8562 Tcl_Obj *const *objv) 8563 8563 { 8564 8564 double vec1[3], vec2[3], vec3[3]; … … 8575 8575 } 8576 8576 const char *name = Tcl_GetString(objv[11]); 8577 if (!g_renderer->addParallel piped(name, vec1, vec2, vec3)) {8578 Tcl_AppendResult(interp, "Failed to create parallel piped", (char*)NULL);8579 return TCL_ERROR; 8580 } 8581 return TCL_OK; 8582 } 8583 8584 static int 8585 Parallel pipedDeleteOp(ClientData clientData, Tcl_Interp *interp, int objc,8586 Tcl_Obj *const *objv)8577 if (!g_renderer->addParallelepiped(name, vec1, vec2, vec3)) { 8578 Tcl_AppendResult(interp, "Failed to create parallelepiped", (char*)NULL); 8579 return TCL_ERROR; 8580 } 8581 return TCL_OK; 8582 } 8583 8584 static int 8585 ParallelepipedDeleteOp(ClientData clientData, Tcl_Interp *interp, int objc, 8586 Tcl_Obj *const *objv) 8587 8587 { 8588 8588 if (objc == 3) { 8589 8589 const char *name = Tcl_GetString(objv[2]); 8590 g_renderer->deleteGraphicsObject<Parallel piped>(name);8591 } else { 8592 g_renderer->deleteGraphicsObject<Parallel piped>("all");8593 } 8594 return TCL_OK; 8595 } 8596 8597 static int 8598 Parallel pipedColorOp(ClientData clientData, Tcl_Interp *interp, int objc,8599 Tcl_Obj *const *objv)8590 g_renderer->deleteGraphicsObject<Parallelepiped>(name); 8591 } else { 8592 g_renderer->deleteGraphicsObject<Parallelepiped>("all"); 8593 } 8594 return TCL_OK; 8595 } 8596 8597 static int 8598 ParallelepipedColorOp(ClientData clientData, Tcl_Interp *interp, int objc, 8599 Tcl_Obj *const *objv) 8600 8600 { 8601 8601 float color[3]; … … 8607 8607 if (objc == 6) { 8608 8608 const char *name = Tcl_GetString(objv[5]); 8609 g_renderer->setGraphicsObjectColor<Parallel piped>(name, color);8610 } else { 8611 g_renderer->setGraphicsObjectColor<Parallel piped>("all", color);8612 } 8613 return TCL_OK; 8614 } 8615 8616 static int 8617 Parallel pipedCullingOp(ClientData clientData, Tcl_Interp *interp, int objc,8618 Tcl_Obj *const *objv)8609 g_renderer->setGraphicsObjectColor<Parallelepiped>(name, color); 8610 } else { 8611 g_renderer->setGraphicsObjectColor<Parallelepiped>("all", color); 8612 } 8613 return TCL_OK; 8614 } 8615 8616 static int 8617 ParallelepipedCullingOp(ClientData clientData, Tcl_Interp *interp, int objc, 8618 Tcl_Obj *const *objv) 8619 8619 { 8620 8620 bool state; … … 8624 8624 if (objc == 4) { 8625 8625 const char *name = Tcl_GetString(objv[3]); 8626 g_renderer->setGraphicsObjectCulling<Parallel piped>(name, state);8627 } else { 8628 g_renderer->setGraphicsObjectCulling<Parallel piped>("all", state);8629 } 8630 return TCL_OK; 8631 } 8632 8633 static int 8634 Parallel pipedEdgeVisibilityOp(ClientData clientData, Tcl_Interp *interp, int objc,8635 Tcl_Obj *const *objv)8626 g_renderer->setGraphicsObjectCulling<Parallelepiped>(name, state); 8627 } else { 8628 g_renderer->setGraphicsObjectCulling<Parallelepiped>("all", state); 8629 } 8630 return TCL_OK; 8631 } 8632 8633 static int 8634 ParallelepipedEdgeVisibilityOp(ClientData clientData, Tcl_Interp *interp, int objc, 8635 Tcl_Obj *const *objv) 8636 8636 { 8637 8637 bool state; … … 8641 8641 if (objc == 4) { 8642 8642 const char *name = Tcl_GetString(objv[3]); 8643 g_renderer->setGraphicsObjectEdgeVisibility<Parallel piped>(name, state);8644 } else { 8645 g_renderer->setGraphicsObjectEdgeVisibility<Parallel piped>("all", state);8646 } 8647 return TCL_OK; 8648 } 8649 8650 static int 8651 Parallel pipedFlipNormalsOp(ClientData clientData, Tcl_Interp *interp, int objc,8652 Tcl_Obj *const *objv)8643 g_renderer->setGraphicsObjectEdgeVisibility<Parallelepiped>(name, state); 8644 } else { 8645 g_renderer->setGraphicsObjectEdgeVisibility<Parallelepiped>("all", state); 8646 } 8647 return TCL_OK; 8648 } 8649 8650 static int 8651 ParallelepipedFlipNormalsOp(ClientData clientData, Tcl_Interp *interp, int objc, 8652 Tcl_Obj *const *objv) 8653 8653 { 8654 8654 bool state; … … 8658 8658 if (objc == 4) { 8659 8659 const char *name = Tcl_GetString(objv[3]); 8660 g_renderer->setGraphicsObjectFlipNormals<Parallel piped>(name, state);8661 } else { 8662 g_renderer->setGraphicsObjectFlipNormals<Parallel piped>("all", state);8663 } 8664 return TCL_OK; 8665 } 8666 8667 static int 8668 Parallel pipedLightingOp(ClientData clientData, Tcl_Interp *interp, int objc,8669 Tcl_Obj *const *objv)8660 g_renderer->setGraphicsObjectFlipNormals<Parallelepiped>(name, state); 8661 } else { 8662 g_renderer->setGraphicsObjectFlipNormals<Parallelepiped>("all", state); 8663 } 8664 return TCL_OK; 8665 } 8666 8667 static int 8668 ParallelepipedLightingOp(ClientData clientData, Tcl_Interp *interp, int objc, 8669 Tcl_Obj *const *objv) 8670 8670 { 8671 8671 bool state; … … 8675 8675 if (objc == 4) { 8676 8676 const char *name = Tcl_GetString(objv[3]); 8677 g_renderer->setGraphicsObjectLighting<Parallel piped>(name, state);8678 } else { 8679 g_renderer->setGraphicsObjectLighting<Parallel piped>("all", state);8680 } 8681 return TCL_OK; 8682 } 8683 8684 static int 8685 Parallel pipedLineColorOp(ClientData clientData, Tcl_Interp *interp, int objc,8686 Tcl_Obj *const *objv)8677 g_renderer->setGraphicsObjectLighting<Parallelepiped>(name, state); 8678 } else { 8679 g_renderer->setGraphicsObjectLighting<Parallelepiped>("all", state); 8680 } 8681 return TCL_OK; 8682 } 8683 8684 static int 8685 ParallelepipedLineColorOp(ClientData clientData, Tcl_Interp *interp, int objc, 8686 Tcl_Obj *const *objv) 8687 8687 { 8688 8688 float color[3]; … … 8694 8694 if (objc == 6) { 8695 8695 const char *name = Tcl_GetString(objv[5]); 8696 g_renderer->setGraphicsObjectEdgeColor<Parallel piped>(name, color);8697 } else { 8698 g_renderer->setGraphicsObjectEdgeColor<Parallel piped>("all", color);8699 } 8700 return TCL_OK; 8701 } 8702 8703 static int 8704 Parallel pipedLineWidthOp(ClientData clientData, Tcl_Interp *interp, int objc,8705 Tcl_Obj *const *objv)8696 g_renderer->setGraphicsObjectEdgeColor<Parallelepiped>(name, color); 8697 } else { 8698 g_renderer->setGraphicsObjectEdgeColor<Parallelepiped>("all", color); 8699 } 8700 return TCL_OK; 8701 } 8702 8703 static int 8704 ParallelepipedLineWidthOp(ClientData clientData, Tcl_Interp *interp, int objc, 8705 Tcl_Obj *const *objv) 8706 8706 { 8707 8707 float width; … … 8711 8711 if (objc == 4) { 8712 8712 const char *name = Tcl_GetString(objv[3]); 8713 g_renderer->setGraphicsObjectEdgeWidth<Parallel piped>(name, width);8714 } else { 8715 g_renderer->setGraphicsObjectEdgeWidth<Parallel piped>("all", width);8716 } 8717 return TCL_OK; 8718 } 8719 8720 static int 8721 Parallel pipedMaterialOp(ClientData clientData, Tcl_Interp *interp, int objc,8722 Tcl_Obj *const *objv)8713 g_renderer->setGraphicsObjectEdgeWidth<Parallelepiped>(name, width); 8714 } else { 8715 g_renderer->setGraphicsObjectEdgeWidth<Parallelepiped>("all", width); 8716 } 8717 return TCL_OK; 8718 } 8719 8720 static int 8721 ParallelepipedMaterialOp(ClientData clientData, Tcl_Interp *interp, int objc, 8722 Tcl_Obj *const *objv) 8723 8723 { 8724 8724 double ambient, diffuse, specCoeff, specPower; … … 8732 8732 if (objc == 7) { 8733 8733 const char *name = Tcl_GetString(objv[6]); 8734 g_renderer->setGraphicsObjectAmbient<Parallel piped>(name, ambient);8735 g_renderer->setGraphicsObjectDiffuse<Parallel piped>(name, diffuse);8736 g_renderer->setGraphicsObjectSpecular<Parallel piped>(name, specCoeff, specPower);8737 } else { 8738 g_renderer->setGraphicsObjectAmbient<Parallel piped>("all", ambient);8739 g_renderer->setGraphicsObjectDiffuse<Parallel piped>("all", diffuse);8740 g_renderer->setGraphicsObjectSpecular<Parallel piped>("all", specCoeff, specPower);8741 } 8742 return TCL_OK; 8743 } 8744 8745 static int 8746 Parallel pipedOpacityOp(ClientData clientData, Tcl_Interp *interp, int objc,8747 Tcl_Obj *const *objv)8734 g_renderer->setGraphicsObjectAmbient<Parallelepiped>(name, ambient); 8735 g_renderer->setGraphicsObjectDiffuse<Parallelepiped>(name, diffuse); 8736 g_renderer->setGraphicsObjectSpecular<Parallelepiped>(name, specCoeff, specPower); 8737 } else { 8738 g_renderer->setGraphicsObjectAmbient<Parallelepiped>("all", ambient); 8739 g_renderer->setGraphicsObjectDiffuse<Parallelepiped>("all", diffuse); 8740 g_renderer->setGraphicsObjectSpecular<Parallelepiped>("all", specCoeff, specPower); 8741 } 8742 return TCL_OK; 8743 } 8744 8745 static int 8746 ParallelepipedOpacityOp(ClientData clientData, Tcl_Interp *interp, int objc, 8747 Tcl_Obj *const *objv) 8748 8748 { 8749 8749 double opacity; … … 8753 8753 if (objc == 4) { 8754 8754 const char *name = Tcl_GetString(objv[3]); 8755 g_renderer->setGraphicsObjectOpacity<Parallel piped>(name, opacity);8756 } else { 8757 g_renderer->setGraphicsObjectOpacity<Parallel piped>("all", opacity);8758 } 8759 return TCL_OK; 8760 } 8761 8762 static int 8763 Parallel pipedOrientOp(ClientData clientData, Tcl_Interp *interp, int objc,8764 Tcl_Obj *const *objv)8755 g_renderer->setGraphicsObjectOpacity<Parallelepiped>(name, opacity); 8756 } else { 8757 g_renderer->setGraphicsObjectOpacity<Parallelepiped>("all", opacity); 8758 } 8759 return TCL_OK; 8760 } 8761 8762 static int 8763 ParallelepipedOrientOp(ClientData clientData, Tcl_Interp *interp, int objc, 8764 Tcl_Obj *const *objv) 8765 8765 { 8766 8766 double quat[4]; … … 8773 8773 if (objc == 7) { 8774 8774 const char *name = Tcl_GetString(objv[6]); 8775 g_renderer->setGraphicsObjectOrientation<Parallel piped>(name, quat);8776 } else { 8777 g_renderer->setGraphicsObjectOrientation<Parallel piped>("all", quat);8778 } 8779 return TCL_OK; 8780 } 8781 8782 static int 8783 Parallel pipedOriginOp(ClientData clientData, Tcl_Interp *interp, int objc,8784 Tcl_Obj *const *objv)8775 g_renderer->setGraphicsObjectOrientation<Parallelepiped>(name, quat); 8776 } else { 8777 g_renderer->setGraphicsObjectOrientation<Parallelepiped>("all", quat); 8778 } 8779 return TCL_OK; 8780 } 8781 8782 static int 8783 ParallelepipedOriginOp(ClientData clientData, Tcl_Interp *interp, int objc, 8784 Tcl_Obj *const *objv) 8785 8785 { 8786 8786 double origin[3]; … … 8792 8792 if (objc == 6) { 8793 8793 const char *name = Tcl_GetString(objv[5]); 8794 g_renderer->setGraphicsObjectOrigin<Parallel piped>(name, origin);8795 } else { 8796 g_renderer->setGraphicsObjectOrigin<Parallel piped>("all", origin);8797 } 8798 return TCL_OK; 8799 } 8800 8801 static int 8802 Parallel pipedPositionOp(ClientData clientData, Tcl_Interp *interp, int objc,8803 Tcl_Obj *const *objv)8794 g_renderer->setGraphicsObjectOrigin<Parallelepiped>(name, origin); 8795 } else { 8796 g_renderer->setGraphicsObjectOrigin<Parallelepiped>("all", origin); 8797 } 8798 return TCL_OK; 8799 } 8800 8801 static int 8802 ParallelepipedPositionOp(ClientData clientData, Tcl_Interp *interp, int objc, 8803 Tcl_Obj *const *objv) 8804 8804 { 8805 8805 double pos[3]; … … 8811 8811 if (objc == 6) { 8812 8812 const char *name = Tcl_GetString(objv[5]); 8813 g_renderer->setGraphicsObjectPosition<Parallel piped>(name, pos);8814 } else { 8815 g_renderer->setGraphicsObjectPosition<Parallel piped>("all", pos);8816 } 8817 return TCL_OK; 8818 } 8819 8820 static int 8821 Parallel pipedScaleOp(ClientData clientData, Tcl_Interp *interp, int objc,8822 Tcl_Obj *const *objv)8813 g_renderer->setGraphicsObjectPosition<Parallelepiped>(name, pos); 8814 } else { 8815 g_renderer->setGraphicsObjectPosition<Parallelepiped>("all", pos); 8816 } 8817 return TCL_OK; 8818 } 8819 8820 static int 8821 ParallelepipedScaleOp(ClientData clientData, Tcl_Interp *interp, int objc, 8822 Tcl_Obj *const *objv) 8823 8823 { 8824 8824 double scale[3]; … … 8830 8830 if (objc == 6) { 8831 8831 const char *name = Tcl_GetString(objv[5]); 8832 g_renderer->setGraphicsObjectScale<Parallel piped>(name, scale);8833 } else { 8834 g_renderer->setGraphicsObjectScale<Parallel piped>("all", scale);8835 } 8836 return TCL_OK; 8837 } 8838 8839 static int 8840 Parallel pipedShadingOp(ClientData clientData, Tcl_Interp *interp, int objc,8841 Tcl_Obj *const *objv)8832 g_renderer->setGraphicsObjectScale<Parallelepiped>(name, scale); 8833 } else { 8834 g_renderer->setGraphicsObjectScale<Parallelepiped>("all", scale); 8835 } 8836 return TCL_OK; 8837 } 8838 8839 static int 8840 ParallelepipedShadingOp(ClientData clientData, Tcl_Interp *interp, int objc, 8841 Tcl_Obj *const *objv) 8842 8842 { 8843 8843 GraphicsObject::ShadingModel shadeModel; … … 8854 8854 if (objc == 4) { 8855 8855 const char *name = Tcl_GetString(objv[3]); 8856 g_renderer->setGraphicsObjectShadingModel<Parallel piped>(name, shadeModel);8857 } else { 8858 g_renderer->setGraphicsObjectShadingModel<Parallel piped>("all", shadeModel);8859 } 8860 return TCL_OK; 8861 } 8862 8863 static int 8864 Parallel pipedVisibleOp(ClientData clientData, Tcl_Interp *interp, int objc,8865 Tcl_Obj *const *objv)8856 g_renderer->setGraphicsObjectShadingModel<Parallelepiped>(name, shadeModel); 8857 } else { 8858 g_renderer->setGraphicsObjectShadingModel<Parallelepiped>("all", shadeModel); 8859 } 8860 return TCL_OK; 8861 } 8862 8863 static int 8864 ParallelepipedVisibleOp(ClientData clientData, Tcl_Interp *interp, int objc, 8865 Tcl_Obj *const *objv) 8866 8866 { 8867 8867 bool state; … … 8871 8871 if (objc == 4) { 8872 8872 const char *name = Tcl_GetString(objv[3]); 8873 g_renderer->setGraphicsObjectVisibility<Parallel piped>(name, state);8874 } else { 8875 g_renderer->setGraphicsObjectVisibility<Parallel piped>("all", state);8876 } 8877 return TCL_OK; 8878 } 8879 8880 static int 8881 Parallel pipedWireframeOp(ClientData clientData, Tcl_Interp *interp, int objc,8882 Tcl_Obj *const *objv)8873 g_renderer->setGraphicsObjectVisibility<Parallelepiped>(name, state); 8874 } else { 8875 g_renderer->setGraphicsObjectVisibility<Parallelepiped>("all", state); 8876 } 8877 return TCL_OK; 8878 } 8879 8880 static int 8881 ParallelepipedWireframeOp(ClientData clientData, Tcl_Interp *interp, int objc, 8882 Tcl_Obj *const *objv) 8883 8883 { 8884 8884 bool state; … … 8888 8888 if (objc == 4) { 8889 8889 const char *name = Tcl_GetString(objv[3]); 8890 g_renderer->setGraphicsObjectWireframe<Parallel piped>(name, state);8891 } else { 8892 g_renderer->setGraphicsObjectWireframe<Parallel piped>("all", state);8893 } 8894 return TCL_OK; 8895 } 8896 8897 static Rappture::CmdSpec parallel pipedOps[] = {8898 {"add", 1, Parallel pipedAddOp, 12, 12, "v0x v0y v0z v1x v1y v1z v2x v2y v2z name"},8899 {"color", 2, Parallel pipedColorOp, 5, 6, "r g b ?name?"},8900 {"culling", 2, Parallel pipedCullingOp, 3, 4, "bool ?name?"},8901 {"delete", 1, Parallel pipedDeleteOp, 2, 3, "?name?"},8902 {"edges", 1, Parallel pipedEdgeVisibilityOp, 3, 4, "bool ?name?"},8903 {"flipnorms", 1, Parallel pipedFlipNormalsOp, 3, 4, "bool ?name?"},8904 {"lighting", 3, Parallel pipedLightingOp, 3, 4, "bool ?name?"},8905 {"linecolor", 5, Parallel pipedLineColorOp, 5, 6, "r g b ?name?"},8906 {"linewidth", 5, Parallel pipedLineWidthOp, 3, 4, "width ?name?"},8907 {"material", 1, Parallel pipedMaterialOp, 6, 7, "ambientCoeff diffuseCoeff specularCoeff specularPower ?name?"},8908 {"opacity", 2, Parallel pipedOpacityOp, 3, 4, "value ?name?"},8909 {"orient", 4, Parallel pipedOrientOp, 6, 7, "qw qx qy qz ?name?"},8910 {"origin", 4, Parallel pipedOriginOp, 5, 6, "x y z ?name?"},8911 {"pos", 1, Parallel pipedPositionOp, 5, 6, "x y z ?name?"},8912 {"scale", 2, Parallel pipedScaleOp, 5, 6, "sx sy sz ?name?"},8913 {"shading", 2, Parallel pipedShadingOp, 3, 4, "val ?name?"},8914 {"visible", 1, Parallel pipedVisibleOp, 3, 4, "bool ?name?"},8915 {"wireframe", 1, Parallel pipedWireframeOp, 3, 4, "bool ?name?"}8890 g_renderer->setGraphicsObjectWireframe<Parallelepiped>(name, state); 8891 } else { 8892 g_renderer->setGraphicsObjectWireframe<Parallelepiped>("all", state); 8893 } 8894 return TCL_OK; 8895 } 8896 8897 static Rappture::CmdSpec parallelepipedOps[] = { 8898 {"add", 1, ParallelepipedAddOp, 12, 12, "v0x v0y v0z v1x v1y v1z v2x v2y v2z name"}, 8899 {"color", 2, ParallelepipedColorOp, 5, 6, "r g b ?name?"}, 8900 {"culling", 2, ParallelepipedCullingOp, 3, 4, "bool ?name?"}, 8901 {"delete", 1, ParallelepipedDeleteOp, 2, 3, "?name?"}, 8902 {"edges", 1, ParallelepipedEdgeVisibilityOp, 3, 4, "bool ?name?"}, 8903 {"flipnorms", 1, ParallelepipedFlipNormalsOp, 3, 4, "bool ?name?"}, 8904 {"lighting", 3, ParallelepipedLightingOp, 3, 4, "bool ?name?"}, 8905 {"linecolor", 5, ParallelepipedLineColorOp, 5, 6, "r g b ?name?"}, 8906 {"linewidth", 5, ParallelepipedLineWidthOp, 3, 4, "width ?name?"}, 8907 {"material", 1, ParallelepipedMaterialOp, 6, 7, "ambientCoeff diffuseCoeff specularCoeff specularPower ?name?"}, 8908 {"opacity", 2, ParallelepipedOpacityOp, 3, 4, "value ?name?"}, 8909 {"orient", 4, ParallelepipedOrientOp, 6, 7, "qw qx qy qz ?name?"}, 8910 {"origin", 4, ParallelepipedOriginOp, 5, 6, "x y z ?name?"}, 8911 {"pos", 1, ParallelepipedPositionOp, 5, 6, "x y z ?name?"}, 8912 {"scale", 2, ParallelepipedScaleOp, 5, 6, "sx sy sz ?name?"}, 8913 {"shading", 2, ParallelepipedShadingOp, 3, 4, "val ?name?"}, 8914 {"visible", 1, ParallelepipedVisibleOp, 3, 4, "bool ?name?"}, 8915 {"wireframe", 1, ParallelepipedWireframeOp, 3, 4, "bool ?name?"} 8916 8916 }; 8917 static int nParallel pipedOps = NumCmdSpecs(parallelpipedOps);8918 8919 static int 8920 Parallel pipedCmd(ClientData clientData, Tcl_Interp *interp, int objc,8917 static int nParallelepipedOps = NumCmdSpecs(parallelepipedOps); 8918 8919 static int 8920 ParallelepipedCmd(ClientData clientData, Tcl_Interp *interp, int objc, 8921 8921 Tcl_Obj *const *objv) 8922 8922 { 8923 8923 Tcl_ObjCmdProc *proc; 8924 8924 8925 proc = Rappture::GetOpFromObj(interp, nParallel pipedOps, parallelpipedOps,8925 proc = Rappture::GetOpFromObj(interp, nParallelepipedOps, parallelepipedOps, 8926 8926 Rappture::CMDSPEC_ARG1, objc, objv, 0); 8927 8927 if (proc == NULL) { … … 12601 12601 { 12602 12602 Tcl_MakeSafe(interp); 12603 Tcl_CreateObjCommand(interp, "arc", ArcCmd,clientData, NULL);12604 Tcl_CreateObjCommand(interp, "arrow", ArrowCmd,clientData, NULL);12605 Tcl_CreateObjCommand(interp, "axis", AxisCmd,clientData, NULL);12606 Tcl_CreateObjCommand(interp, "box", BoxCmd,clientData, NULL);12607 Tcl_CreateObjCommand(interp, "camera", CameraCmd,clientData, NULL);12608 Tcl_CreateObjCommand(interp, "clientinfo", ClientInfoCmd,clientData, NULL);12609 Tcl_CreateObjCommand(interp, "colormap", ColorMapCmd,clientData, NULL);12610 Tcl_CreateObjCommand(interp, "cone", ConeCmd,clientData, NULL);12611 Tcl_CreateObjCommand(interp, "contour2d", Contour2DCmd,clientData, NULL);12612 Tcl_CreateObjCommand(interp, "contour3d", Contour3DCmd,clientData, NULL);12613 Tcl_CreateObjCommand(interp, "cutplane", CutplaneCmd,clientData, NULL);12614 Tcl_CreateObjCommand(interp, "cylinder", CylinderCmd,clientData, NULL);12615 Tcl_CreateObjCommand(interp, "dataset", DataSetCmd,clientData, NULL);12616 Tcl_CreateObjCommand(interp, "disk", DiskCmd,clientData, NULL);12617 Tcl_CreateObjCommand(interp, "glyphs", GlyphsCmd,clientData, NULL);12618 Tcl_CreateObjCommand(interp, "group", GroupCmd,clientData, NULL);12619 Tcl_CreateObjCommand(interp, "heightmap", HeightMapCmd,clientData, NULL);12620 Tcl_CreateObjCommand(interp, "image", ImageCmd,clientData, NULL);12621 Tcl_CreateObjCommand(interp, "imgflush", ImageFlushCmd,clientData, NULL);12622 Tcl_CreateObjCommand(interp, "legend", LegendCmd,clientData, NULL);12623 Tcl_CreateObjCommand(interp, "legend2", LegendSimpleCmd,clientData, NULL);12624 Tcl_CreateObjCommand(interp, "lic", LICCmd,clientData, NULL);12625 Tcl_CreateObjCommand(interp, "line", LineCmd,clientData, NULL);12626 Tcl_CreateObjCommand(interp, "molecule", MoleculeCmd,clientData, NULL);12627 Tcl_CreateObjCommand(interp, "outline", OutlineCmd,clientData, NULL);12628 Tcl_CreateObjCommand(interp, "parallel piped", ParallelpipedCmd, clientData, NULL);12629 Tcl_CreateObjCommand(interp, "polydata", PolyDataCmd,clientData, NULL);12630 Tcl_CreateObjCommand(interp, "polygon", PolygonCmd,clientData, NULL);12631 Tcl_CreateObjCommand(interp, "pseudocolor", PseudoColorCmd,clientData, NULL);12632 Tcl_CreateObjCommand(interp, "renderer", RendererCmd,clientData, NULL);12633 Tcl_CreateObjCommand(interp, "screen", ScreenCmd,clientData, NULL);12634 Tcl_CreateObjCommand(interp, "sphere", SphereCmd,clientData, NULL);12635 Tcl_CreateObjCommand(interp, "streamlines", StreamlinesCmd,clientData, NULL);12636 Tcl_CreateObjCommand(interp, "text3d", Text3DCmd,clientData, NULL);12637 Tcl_CreateObjCommand(interp, "volume", VolumeCmd,clientData, NULL);12638 Tcl_CreateObjCommand(interp, "warp", WarpCmd,clientData, NULL);12603 Tcl_CreateObjCommand(interp, "arc", ArcCmd, clientData, NULL); 12604 Tcl_CreateObjCommand(interp, "arrow", ArrowCmd, clientData, NULL); 12605 Tcl_CreateObjCommand(interp, "axis", AxisCmd, clientData, NULL); 12606 Tcl_CreateObjCommand(interp, "box", BoxCmd, clientData, NULL); 12607 Tcl_CreateObjCommand(interp, "camera", CameraCmd, clientData, NULL); 12608 Tcl_CreateObjCommand(interp, "clientinfo", ClientInfoCmd, clientData, NULL); 12609 Tcl_CreateObjCommand(interp, "colormap", ColorMapCmd, clientData, NULL); 12610 Tcl_CreateObjCommand(interp, "cone", ConeCmd, clientData, NULL); 12611 Tcl_CreateObjCommand(interp, "contour2d", Contour2DCmd, clientData, NULL); 12612 Tcl_CreateObjCommand(interp, "contour3d", Contour3DCmd, clientData, NULL); 12613 Tcl_CreateObjCommand(interp, "cutplane", CutplaneCmd, clientData, NULL); 12614 Tcl_CreateObjCommand(interp, "cylinder", CylinderCmd, clientData, NULL); 12615 Tcl_CreateObjCommand(interp, "dataset", DataSetCmd, clientData, NULL); 12616 Tcl_CreateObjCommand(interp, "disk", DiskCmd, clientData, NULL); 12617 Tcl_CreateObjCommand(interp, "glyphs", GlyphsCmd, clientData, NULL); 12618 Tcl_CreateObjCommand(interp, "group", GroupCmd, clientData, NULL); 12619 Tcl_CreateObjCommand(interp, "heightmap", HeightMapCmd, clientData, NULL); 12620 Tcl_CreateObjCommand(interp, "image", ImageCmd, clientData, NULL); 12621 Tcl_CreateObjCommand(interp, "imgflush", ImageFlushCmd, clientData, NULL); 12622 Tcl_CreateObjCommand(interp, "legend", LegendCmd, clientData, NULL); 12623 Tcl_CreateObjCommand(interp, "legend2", LegendSimpleCmd, clientData, NULL); 12624 Tcl_CreateObjCommand(interp, "lic", LICCmd, clientData, NULL); 12625 Tcl_CreateObjCommand(interp, "line", LineCmd, clientData, NULL); 12626 Tcl_CreateObjCommand(interp, "molecule", MoleculeCmd, clientData, NULL); 12627 Tcl_CreateObjCommand(interp, "outline", OutlineCmd, clientData, NULL); 12628 Tcl_CreateObjCommand(interp, "parallelepiped", ParallelepipedCmd, clientData, NULL); 12629 Tcl_CreateObjCommand(interp, "polydata", PolyDataCmd, clientData, NULL); 12630 Tcl_CreateObjCommand(interp, "polygon", PolygonCmd, clientData, NULL); 12631 Tcl_CreateObjCommand(interp, "pseudocolor", PseudoColorCmd, clientData, NULL); 12632 Tcl_CreateObjCommand(interp, "renderer", RendererCmd, clientData, NULL); 12633 Tcl_CreateObjCommand(interp, "screen", ScreenCmd, clientData, NULL); 12634 Tcl_CreateObjCommand(interp, "sphere", SphereCmd, clientData, NULL); 12635 Tcl_CreateObjCommand(interp, "streamlines", StreamlinesCmd, clientData, NULL); 12636 Tcl_CreateObjCommand(interp, "text3d", Text3DCmd, clientData, NULL); 12637 Tcl_CreateObjCommand(interp, "volume", VolumeCmd, clientData, NULL); 12638 Tcl_CreateObjCommand(interp, "warp", WarpCmd, clientData, NULL); 12639 12639 } 12640 12640 … … 12669 12669 Tcl_DeleteCommand(interp, "molecule"); 12670 12670 Tcl_DeleteCommand(interp, "outline"); 12671 Tcl_DeleteCommand(interp, "parallel piped");12671 Tcl_DeleteCommand(interp, "parallelepiped"); 12672 12672 Tcl_DeleteCommand(interp, "polydata"); 12673 12673 Tcl_DeleteCommand(interp, "polygon"); -
trunk/packages/vizservers/vtkvis/RendererGraphicsObjs.cpp
r3859 r3861 28 28 #include "Line.h" 29 29 #include "Molecule.h" 30 #include "Parallel piped.h"30 #include "Parallelepiped.h" 31 31 #include "PolyData.h" 32 32 #include "PseudoColor.h" … … 126 126 127 127 template<> 128 Renderer::Parallel pipedHashmap &129 Renderer::getGraphicsObjectHashmap<Parallel piped>()130 { return _parallel pipeds; }128 Renderer::ParallelepipedHashmap & 129 Renderer::getGraphicsObjectHashmap<Parallelepiped>() 130 { return _parallelepipeds; } 131 131 132 132 template<> … … 179 179 template Group *Renderer::getGraphicsObject(const DataSetId&); 180 180 template Line *Renderer::getGraphicsObject(const DataSetId&); 181 template Parallel piped *Renderer::getGraphicsObject(const DataSetId&);181 template Parallelepiped *Renderer::getGraphicsObject(const DataSetId&); 182 182 template Polygon *Renderer::getGraphicsObject(const DataSetId&); 183 183 template Sphere *Renderer::getGraphicsObject(const DataSetId&); … … 296 296 return gobj; 297 297 } 298 if ((gobj = getGraphicsObject<Parallel piped>(id)) != NULL) {298 if ((gobj = getGraphicsObject<Parallelepiped>(id)) != NULL) { 299 299 return gobj; 300 300 } … … 2948 2948 2949 2949 /** 2950 * \brief Create a new Parallel piped and associate it with an ID2951 */ 2952 bool Renderer::addParallel piped(const DataSetId& id,2953 double vec1[3], double vec2[3], double vec3[3],2954 bool flipNormals)2955 { 2956 Parallel piped *gobj;2957 if ((gobj = getGraphicsObject<Parallel piped>(id)) != NULL) {2950 * \brief Create a new Parallelepiped and associate it with an ID 2951 */ 2952 bool Renderer::addParallelepiped(const DataSetId& id, 2953 double vec1[3], double vec2[3], double vec3[3], 2954 bool flipNormals) 2955 { 2956 Parallelepiped *gobj; 2957 if ((gobj = getGraphicsObject<Parallelepiped>(id)) != NULL) { 2958 2958 WARN("Replacing existing %s %s", gobj->getClassName(), id.c_str()); 2959 deleteGraphicsObject<Parallel piped>(id);2960 } 2961 2962 gobj = new Parallel piped();2959 deleteGraphicsObject<Parallelepiped>(id); 2960 } 2961 2962 gobj = new Parallelepiped(); 2963 2963 2964 2964 gobj->setDataSet(NULL, this); … … 2979 2979 gobj->flipNormals(flipNormals); 2980 2980 2981 getGraphicsObjectHashmap<Parallel piped>()[id] = gobj;2981 getGraphicsObjectHashmap<Parallelepiped>()[id] = gobj; 2982 2982 2983 2983 sceneBoundsChanged(); -
trunk/packages/vizservers/vtkvis/protocol.txt
r3859 r3861 686 686 outline visible <bool> <?datasetName?> 687 687 688 parallel piped add <v0x> <v0y> <v0z> <v1x> <v1y> <v1z> <v2x> <v2y> <v2z> <name>689 Specify parallelpiped using 3 basis vectors. The 3 vectors should690 be given in order to create a right-handed coordinate system, i.e.691 (v0 cross v1) dot v2 should be positive.692 parallel piped color <r> <g> <b> <?name?>693 parallel piped culling <bool> <?name?>694 parallel piped delete <?name?>695 parallel piped edges <bool> <?name?>696 parallel piped flipnorm <bool> <?name?>697 parallel piped lighting <bool> <?name?>698 parallel piped linecolor <r> <g> <b> <?name?>699 parallel piped linewidth <val> <?name?>700 parallel piped material <ambientCoeff> <diffuseCoeff> <specularCoeff> <specularExp> <?name?>701 parallel piped opacity <val> <?name?>702 parallel piped orient <qw> <qx> <qy> <qz> <?name?>703 parallel piped origin <x> <y> <z> <?name?>704 parallel piped pos <x> <y> <z> <?name?>705 parallel piped scale <sx> <sy> <sz> <?name?>706 parallel piped shading <val> <?name?>707 val = flat|smooth708 parallel piped visible <bool> <?name?>709 parallel piped wireframe <bool> <?name?>688 parallelepiped add <v0x> <v0y> <v0z> <v1x> <v1y> <v1z> <v2x> <v2y> <v2z> <name> 689 Specify parallelepiped using 3 basis vectors. The 3 vectors should 690 be given in order to create a right-handed coordinate system, i.e. 691 (v0 cross v1) dot v2 should be positive. 692 parallelepiped color <r> <g> <b> <?name?> 693 parallelepiped culling <bool> <?name?> 694 parallelepiped delete <?name?> 695 parallelepiped edges <bool> <?name?> 696 parallelepiped flipnorm <bool> <?name?> 697 parallelepiped lighting <bool> <?name?> 698 parallelepiped linecolor <r> <g> <b> <?name?> 699 parallelepiped linewidth <val> <?name?> 700 parallelepiped material <ambientCoeff> <diffuseCoeff> <specularCoeff> <specularExp> <?name?> 701 parallelepiped opacity <val> <?name?> 702 parallelepiped orient <qw> <qx> <qy> <qz> <?name?> 703 parallelepiped origin <x> <y> <z> <?name?> 704 parallelepiped pos <x> <y> <z> <?name?> 705 parallelepiped scale <sx> <sy> <sz> <?name?> 706 parallelepiped shading <val> <?name?> 707 val = flat|smooth 708 parallelepiped visible <bool> <?name?> 709 parallelepiped wireframe <bool> <?name?> 710 710 711 711 polydata add <?datasetName?>
Note: See TracChangeset
for help on using the changeset viewer.