Changeset 2423 for trunk/packages/vizservers/vtkvis/RpVtkRenderer.h
- Timestamp:
- Aug 27, 2011 1:59:23 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/vtkvis/RpVtkRenderer.h
r2402 r2423 12 12 #include <vtkCubeAxesActor.h> 13 13 #ifdef USE_CUSTOM_AXES 14 #include <vtkRpCubeAxesActor2D.h>14 #include "vtkRpCubeAxesActor2D.h" 15 15 #else 16 16 #include <vtkCubeAxesActor2D.h> … … 59 59 Y_AXIS, 60 60 Z_AXIS 61 }; 62 63 enum PrincipalPlane { 64 PLANE_XY, 65 PLANE_ZY, 66 PLANE_XZ 61 67 }; 62 68 … … 104 110 DataSet *getDataSet(const DataSetId& id); 105 111 112 void getDataSetNames(std::vector<std::string>& names); 113 106 114 bool setData(const DataSetId& id, char *data, int nbytes); 107 115 … … 112 120 bool setDataSetActiveVectors(const DataSetId& id, const char *vectorName); 113 121 114 double getDataValueAtPixel(const DataSetId& id, int x, int y); 115 116 double getDataValue(const DataSetId& id, double x, double y, double z); 122 bool getScalarValueAtPixel(const DataSetId& id, int x, int y, double *value); 123 124 bool getScalarValue(const DataSetId& id, double x, double y, double z, double *value); 125 126 bool getVectorValueAtPixel(const DataSetId& id, int x, int y, double vector[3]); 127 128 bool getVectorValue(const DataSetId& id, double x, double y, double z, double vector[3]); 117 129 118 130 void setOpacity(const DataSetId& id, double opacity); … … 148 160 void resetCameraClippingRange(); 149 161 162 void setCameraZoomRegionPixels(int x, int y, int width, int height); 163 150 164 void setCameraZoomRegion(double x, double y, double width, double height); 151 165 … … 232 246 // 2D Contour plots 233 247 234 voidaddContour2D(const DataSetId& id, int numContours);235 236 voidaddContour2D(const DataSetId& id, const std::vector<double>& contours);248 bool addContour2D(const DataSetId& id, int numContours); 249 250 bool addContour2D(const DataSetId& id, const std::vector<double>& contours); 237 251 238 252 void deleteContour2D(const DataSetId& id); … … 266 280 // 3D Contour (isosurface) plots 267 281 268 voidaddContour3D(const DataSetId& id, int numContours);269 270 voidaddContour3D(const DataSetId& id, const std::vector<double>& contours);282 bool addContour3D(const DataSetId& id, int numContours); 283 284 bool addContour3D(const DataSetId& id, const std::vector<double>& contours); 271 285 272 286 void deleteContour3D(const DataSetId& id); … … 308 322 // Glyphs 309 323 310 voidaddGlyphs(const DataSetId& id, Glyphs::GlyphShape shape);324 bool addGlyphs(const DataSetId& id, Glyphs::GlyphShape shape); 311 325 312 326 void deleteGlyphs(const DataSetId& id); … … 352 366 // Height maps 353 367 354 void addHeightMap(const DataSetId& id, int numContours);355 356 void addHeightMap(const DataSetId& id, const std::vector<double>& contours);368 bool addHeightMap(const DataSetId& id, int numContours, double heightScale); 369 370 bool addHeightMap(const DataSetId& id, const std::vector<double>& contours, double heightScale); 357 371 358 372 void deleteHeightMap(const DataSetId& id); … … 382 396 void setHeightMapVisibility(const DataSetId& id, bool state); 383 397 398 void setHeightMapWireframe(const DataSetId& id, bool state); 399 384 400 void setHeightMapVolumeSlice(const DataSetId& id, HeightMap::Axis axis, double ratio); 385 401 … … 388 404 void setHeightMapColorMap(const DataSetId& id, const ColorMapId& colorMapId); 389 405 390 void setHeightMap Contours(const DataSetId& id, int numContours);406 void setHeightMapNumContours(const DataSetId& id, int numContours); 391 407 392 408 void setHeightMapContourList(const DataSetId& id, const std::vector<double>& contours); 393 409 394 void setHeightMapContourVisibility(const DataSetId& id, bool state); 410 void setHeightMapContourSurfaceVisibility(const DataSetId& id, bool state); 411 412 void setHeightMapContourLineVisibility(const DataSetId& id, bool state); 395 413 396 414 void setHeightMapContourEdgeColor(const DataSetId& id, float color[3]); … … 400 418 // LIC plots 401 419 402 voidaddLIC(const DataSetId& id);420 bool addLIC(const DataSetId& id); 403 421 404 422 void deleteLIC(const DataSetId& id); … … 434 452 // Molecules 435 453 436 voidaddMolecule(const DataSetId& id);454 bool addMolecule(const DataSetId& id); 437 455 438 456 void deleteMolecule(const DataSetId& id); … … 474 492 // PolyData Meshes 475 493 476 voidaddPolyData(const DataSetId& id);494 bool addPolyData(const DataSetId& id); 477 495 478 496 void deletePolyData(const DataSetId& id); … … 498 516 void setPolyDataEdgeWidth(const DataSetId& id, float edgeWidth); 499 517 518 void setPolyDataPointSize(const DataSetId& id, float size); 519 500 520 void setPolyDataLighting(const DataSetId& id, bool state); 501 521 … … 509 529 // Color-mapped surfaces 510 530 511 voidaddPseudoColor(const DataSetId& id);531 bool addPseudoColor(const DataSetId& id); 512 532 513 533 void deletePseudoColor(const DataSetId& id); … … 543 563 // Streamlines 544 564 545 voidaddStreamlines(const DataSetId& id);565 bool addStreamlines(const DataSetId& id); 546 566 547 567 void deleteStreamlines(const DataSetId& id); … … 612 632 // Volumes 613 633 614 voidaddVolume(const DataSetId& id);634 bool addVolume(const DataSetId& id); 615 635 616 636 void deleteVolume(const DataSetId& id); … … 678 698 void computeScreenWorldCoords(); 679 699 700 bool is2D(const double bounds[6], 701 PrincipalPlane *plane, 702 double *offset) const; 680 703 void initCamera(); 681 704 void initAxes(); … … 687 710 double _imgWorldOrigin[2]; 688 711 double _imgWorldDims[2]; 712 PrincipalPlane _imgCameraPlane; 713 double _imgCameraOffset; 689 714 double _screenWorldCoords[4]; 690 715 double _cameraOrientation[4];
Note: See TracChangeset
for help on using the changeset viewer.