/usr/include/vtk-6.3/vtkCubeAxesActor.h is in libvtk6-dev 6.3.0+dfsg1-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkCubeAxesActor.h
Language: C++
Date: $Date$
Version: $Revision$
Thanks: Kathleen Bonnell, B Division, Lawrence Livermore Nat'l Laboratory
Copyright (c) 1993-2001 Ken Martin, Will Schroeder, Bill Lorensen
All rights reserve
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// .NAME vtkCubeAxesActor - create a plot of a bounding box edges -
// used for navigation
// .SECTION Description
// vtkCubeAxesActor is a composite actor that draws axes of the
// bounding box of an input dataset. The axes include labels and titles
// for the x-y-z axes. The algorithm selects which axes to draw based
// on the user-defined 'fly' mode. (STATIC is default).
// 'STATIC' constructs axes from all edges of the bounding box.
// 'CLOSEST_TRIAD' consists of the three axes x-y-z forming a triad that
// lies closest to the specified camera.
// 'FURTHEST_TRIAD' consists of the three axes x-y-z forming a triad that
// lies furthest from the specified camera.
// 'OUTER_EDGES' is constructed from edges that are on the "exterior" of the
// bounding box, exterior as determined from examining outer edges of the
// bounding box in projection (display) space.
//
// To use this object you must define a bounding box and the camera used
// to render the vtkCubeAxesActor. You can optionally turn on/off labels,
// ticks, gridlines, and set tick location, number of labels, and text to
// use for axis-titles. A 'corner offset' can also be set. This allows
// the axes to be set partially away from the actual bounding box to perhaps
// prevent overlap of labels between the various axes.
//
// The Bounds instance variable (an array of six doubles) is used to determine
// the bounding box.
//
// .SECTION Thanks
// This class was written by:
// Hank Childs, Kathleen Bonnell, Amy Squillacote, Brad Whitlock, Will Schroeder,
// Eric Brugger, Daniel Aguilera, Claire Guilbaud, Nicolas Dolegieviez,
// Aashish Chaudhary, Philippe Pebay, David Gobbi, David Partyka, Utkarsh Ayachit
// David Cole, Francois Bertel, and Mark Olesen
// Part of this work was supported by CEA/DIF - Commissariat a l'Energie Atomique,
// Centre DAM Ile-De-France, BP12, F-91297 Arpajon, France.
//
// .section See Also
// vtkActor vtkAxisActor vtkCubeAxesActor2D
#ifndef vtkCubeAxesActor_h
#define vtkCubeAxesActor_h
#define VTK_FLY_OUTER_EDGES 0
#define VTK_FLY_CLOSEST_TRIAD 1
#define VTK_FLY_FURTHEST_TRIAD 2
#define VTK_FLY_STATIC_TRIAD 3
#define VTK_FLY_STATIC_EDGES 4
#define VTK_TICKS_INSIDE 0
#define VTK_TICKS_OUTSIDE 1
#define VTK_TICKS_BOTH 2
#define VTK_GRID_LINES_ALL 0
#define VTK_GRID_LINES_CLOSEST 1
#define VTK_GRID_LINES_FURTHEST 2
#define NUMBER_OF_ALIGNED_AXIS 4
#include "vtkRenderingAnnotationModule.h" // For export macro
#include "vtkActor.h"
class vtkAxisActor;
class vtkCamera;
class vtkTextProperty;
class vtkStringArray;
class VTKRENDERINGANNOTATION_EXPORT vtkCubeAxesActor : public vtkActor
{
public:
vtkTypeMacro(vtkCubeAxesActor,vtkActor);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Instantiate object with label format "6.3g" and the number of labels
// per axis set to 3.
static vtkCubeAxesActor *New();
// Description:
// Draw the axes as per the vtkProp superclass' API.
virtual int RenderOpaqueGeometry(vtkViewport*);
virtual int RenderTranslucentGeometry(vtkViewport*);
virtual int RenderTranslucentPolygonalGeometry(vtkViewport*);
virtual int RenderOverlay(vtkViewport*);
int HasTranslucentPolygonalGeometry();
// Description:
// Gets/Sets the RebuildAxes flag
vtkSetMacro( RebuildAxes, bool );
vtkGetMacro( RebuildAxes, bool );
// Description:
// Explicitly specify the region in space around which to draw the bounds.
// The bounds is used only when no Input or Prop is specified. The bounds
// are specified according to (xmin,xmax, ymin,ymax, zmin,zmax), making
// sure that the min's are less than the max's.
vtkSetVector6Macro(Bounds,double);
vtkGetVector6Macro(Bounds,double);
// Description:
// Method used to properly return the bounds of the cube axis itself with all
// its labels.
virtual void GetRenderedBounds(double rBounds[6]);
virtual double* GetRenderedBounds();
// Description:
// Explicitly specify the range of each axes that's used to define the prop.
// The default, (if you do not use these methods) is to use the bounds
// specified, or use the bounds of the Input Prop if one is specified. This
// method allows you to separate the notion of extent of the axes in physical
// space (bounds) and the extent of the values it represents. In other words,
// you can have the ticks and labels show a different range.
vtkSetVector2Macro( XAxisRange, double );
vtkSetVector2Macro( YAxisRange, double );
vtkSetVector2Macro( ZAxisRange, double );
vtkGetVector2Macro( XAxisRange, double );
vtkGetVector2Macro( YAxisRange, double );
// Description
// Explicitly specify the axis labels along an axis as an array of strings
// instead of using the values.
vtkStringArray* GetAxisLabels(int axis);
void SetAxisLabels(int axis, vtkStringArray* value);
vtkGetVector2Macro( ZAxisRange, double );
// Description:
// Explicitly specify the screen size of title and label text.
// ScreenSize determines the size of the text in terms of screen
// pixels. Default is 10.0.
void SetScreenSize(double screenSize);
vtkGetMacro(ScreenSize, double);
// Description:
// Explicitly specify the distance between labels and the axis.
// Default is 20.0.
void SetLabelOffset(double offset);
vtkGetMacro(LabelOffset, double);
// Description:
// Explicitly specify the distance between title and labels.
// Default is 20.0.
void SetTitleOffset(double offset);
vtkGetMacro(TitleOffset, double);
// Description:
// Set/Get the camera to perform scaling and translation of the
// vtkCubeAxesActor.
virtual void SetCamera(vtkCamera*);
vtkGetObjectMacro(Camera,vtkCamera);
// Description:
// Specify a mode to control how the axes are drawn: either static,
// closest triad, furthest triad or outer edges in relation to the
// camera position.
vtkSetClampMacro(FlyMode, int, VTK_FLY_OUTER_EDGES, VTK_FLY_STATIC_EDGES);
vtkGetMacro(FlyMode, int);
void SetFlyModeToOuterEdges()
{this->SetFlyMode(VTK_FLY_OUTER_EDGES);};
void SetFlyModeToClosestTriad()
{this->SetFlyMode(VTK_FLY_CLOSEST_TRIAD);};
void SetFlyModeToFurthestTriad()
{this->SetFlyMode(VTK_FLY_FURTHEST_TRIAD);};
void SetFlyModeToStaticTriad()
{this->SetFlyMode(VTK_FLY_STATIC_TRIAD);};
void SetFlyModeToStaticEdges()
{this->SetFlyMode(VTK_FLY_STATIC_EDGES);};
// Description:
// Set/Get the labels for the x, y, and z axes. By default,
// use "X-Axis", "Y-Axis" and "Z-Axis".
vtkSetStringMacro(XTitle);
vtkGetStringMacro(XTitle);
vtkSetStringMacro(XUnits);
vtkGetStringMacro(XUnits);
vtkSetStringMacro(YTitle);
vtkGetStringMacro(YTitle);
vtkSetStringMacro(YUnits);
vtkGetStringMacro(YUnits);
vtkSetStringMacro(ZTitle);
vtkGetStringMacro(ZTitle);
vtkSetStringMacro(ZUnits);
vtkGetStringMacro(ZUnits);
// Description:
// Set/Get the format with which to print the labels on each of the
// x-y-z axes.
vtkSetStringMacro(XLabelFormat);
vtkGetStringMacro(XLabelFormat);
vtkSetStringMacro(YLabelFormat);
vtkGetStringMacro(YLabelFormat);
vtkSetStringMacro(ZLabelFormat);
vtkGetStringMacro(ZLabelFormat);
// Description:
// Set/Get the inertial factor that controls how often (i.e, how
// many renders) the axes can switch position (jump from one axes
// to another).
vtkSetClampMacro(Inertia, int, 1, VTK_INT_MAX);
vtkGetMacro(Inertia, int);
// Description:
// Specify an offset value to "pull back" the axes from the corner at
// which they are joined to avoid overlap of axes labels. The
// "CornerOffset" is the fraction of the axis length to pull back.
vtkSetMacro(CornerOffset, double);
vtkGetMacro(CornerOffset, double);
// Description:
// Release any graphics resources that are being consumed by this actor.
// The parameter window could be used to determine which graphic
// resources to release.
void ReleaseGraphicsResources(vtkWindow *);
// Description:
// Enable and disable the use of distance based LOD for titles and labels.
vtkSetMacro( EnableDistanceLOD, int );
vtkGetMacro( EnableDistanceLOD, int );
// Description:a
// Set distance LOD threshold [0.0 - 1.0] for titles and labels.
vtkSetClampMacro( DistanceLODThreshold, double, 0.0, 1.0 );
vtkGetMacro( DistanceLODThreshold, double);
// Description:
// Enable and disable the use of view angle based LOD for titles and labels.
vtkSetMacro( EnableViewAngleLOD, int );
vtkGetMacro( EnableViewAngleLOD, int );
// Description:
// Set view angle LOD threshold [0.0 - 1.0] for titles and labels.
vtkSetClampMacro( ViewAngleLODThreshold, double, 0., 1. );
vtkGetMacro( ViewAngleLODThreshold, double );
// Description:
// Turn on and off the visibility of each axis.
vtkSetMacro(XAxisVisibility,int);
vtkGetMacro(XAxisVisibility,int);
vtkBooleanMacro(XAxisVisibility,int);
vtkSetMacro(YAxisVisibility,int);
vtkGetMacro(YAxisVisibility,int);
vtkBooleanMacro(YAxisVisibility,int);
vtkSetMacro(ZAxisVisibility,int);
vtkGetMacro(ZAxisVisibility,int);
vtkBooleanMacro(ZAxisVisibility,int);
// Description:
// Turn on and off the visibility of labels for each axis.
vtkSetMacro(XAxisLabelVisibility,int);
vtkGetMacro(XAxisLabelVisibility,int);
vtkBooleanMacro(XAxisLabelVisibility,int);
vtkSetMacro(YAxisLabelVisibility,int);
vtkGetMacro(YAxisLabelVisibility,int);
vtkBooleanMacro(YAxisLabelVisibility,int);
vtkSetMacro(ZAxisLabelVisibility,int);
vtkGetMacro(ZAxisLabelVisibility,int);
vtkBooleanMacro(ZAxisLabelVisibility,int);
// Description:
// Turn on and off the visibility of ticks for each axis.
vtkSetMacro(XAxisTickVisibility,int);
vtkGetMacro(XAxisTickVisibility,int);
vtkBooleanMacro(XAxisTickVisibility,int);
vtkSetMacro(YAxisTickVisibility,int);
vtkGetMacro(YAxisTickVisibility,int);
vtkBooleanMacro(YAxisTickVisibility,int);
vtkSetMacro(ZAxisTickVisibility,int);
vtkGetMacro(ZAxisTickVisibility,int);
vtkBooleanMacro(ZAxisTickVisibility,int);
// Description:
// Turn on and off the visibility of minor ticks for each axis.
vtkSetMacro(XAxisMinorTickVisibility,int);
vtkGetMacro(XAxisMinorTickVisibility,int);
vtkBooleanMacro(XAxisMinorTickVisibility,int);
vtkSetMacro(YAxisMinorTickVisibility,int);
vtkGetMacro(YAxisMinorTickVisibility,int);
vtkBooleanMacro(YAxisMinorTickVisibility,int);
vtkSetMacro(ZAxisMinorTickVisibility,int);
vtkGetMacro(ZAxisMinorTickVisibility,int);
vtkBooleanMacro(ZAxisMinorTickVisibility,int);
vtkSetMacro(DrawXGridlines,int);
vtkGetMacro(DrawXGridlines,int);
vtkBooleanMacro(DrawXGridlines,int);
vtkSetMacro(DrawYGridlines,int);
vtkGetMacro(DrawYGridlines,int);
vtkBooleanMacro(DrawYGridlines,int);
vtkSetMacro(DrawZGridlines,int);
vtkGetMacro(DrawZGridlines,int);
vtkBooleanMacro(DrawZGridlines,int);
vtkSetMacro(DrawXInnerGridlines,int);
vtkGetMacro(DrawXInnerGridlines,int);
vtkBooleanMacro(DrawXInnerGridlines,int);
vtkSetMacro(DrawYInnerGridlines,int);
vtkGetMacro(DrawYInnerGridlines,int);
vtkBooleanMacro(DrawYInnerGridlines,int);
vtkSetMacro(DrawZInnerGridlines,int);
vtkGetMacro(DrawZInnerGridlines,int);
vtkBooleanMacro(DrawZInnerGridlines,int);
vtkSetMacro(DrawXGridpolys,int);
vtkGetMacro(DrawXGridpolys,int);
vtkBooleanMacro(DrawXGridpolys,int);
vtkSetMacro(DrawYGridpolys,int);
vtkGetMacro(DrawYGridpolys,int);
vtkBooleanMacro(DrawYGridpolys,int);
vtkSetMacro(DrawZGridpolys,int);
vtkGetMacro(DrawZGridpolys,int);
vtkBooleanMacro(DrawZGridpolys,int);
// Description:
// Returns the text property for the title on an axis.
vtkTextProperty *GetTitleTextProperty(int);
// Description:
// Returns the text property for the labels on an axis.
vtkTextProperty *GetLabelTextProperty(int);
// Description:
// Get/Set axes actors properties.
void SetXAxesLinesProperty(vtkProperty *);
vtkProperty* GetXAxesLinesProperty();
void SetYAxesLinesProperty(vtkProperty *);
vtkProperty* GetYAxesLinesProperty();
void SetZAxesLinesProperty(vtkProperty *);
vtkProperty* GetZAxesLinesProperty();
// Description:
// Get/Set axes (outer) gridlines actors properties.
void SetXAxesGridlinesProperty(vtkProperty *);
vtkProperty* GetXAxesGridlinesProperty();
void SetYAxesGridlinesProperty(vtkProperty *);
vtkProperty* GetYAxesGridlinesProperty();
void SetZAxesGridlinesProperty(vtkProperty *);
vtkProperty* GetZAxesGridlinesProperty();
// Description:
// Get/Set axes inner gridlines actors properties.
void SetXAxesInnerGridlinesProperty(vtkProperty *);
vtkProperty* GetXAxesInnerGridlinesProperty();
void SetYAxesInnerGridlinesProperty(vtkProperty *);
vtkProperty* GetYAxesInnerGridlinesProperty();
void SetZAxesInnerGridlinesProperty(vtkProperty *);
vtkProperty* GetZAxesInnerGridlinesProperty();
// Description:
// Get/Set axes gridPolys actors properties.
void SetXAxesGridpolysProperty(vtkProperty *);
vtkProperty* GetXAxesGridpolysProperty();
void SetYAxesGridpolysProperty(vtkProperty *);
vtkProperty* GetYAxesGridpolysProperty();
void SetZAxesGridpolysProperty(vtkProperty *);
vtkProperty* GetZAxesGridpolysProperty();
// Description:
// Set/Get the location of ticks marks.
vtkSetClampMacro(TickLocation, int, VTK_TICKS_INSIDE, VTK_TICKS_BOTH);
vtkGetMacro(TickLocation, int);
void SetTickLocationToInside(void)
{ this->SetTickLocation(VTK_TICKS_INSIDE); };
void SetTickLocationToOutside(void)
{ this->SetTickLocation(VTK_TICKS_OUTSIDE); };
void SetTickLocationToBoth(void)
{ this->SetTickLocation(VTK_TICKS_BOTH); };
void SetLabelScaling(bool, int, int, int);
// Description:
// Use or not vtkTextActor3D for titles and labels.
// See Also:
// vtkAxisActor::SetUseTextActor3D(), vtkAxisActor::GetUseTextActor3D()
void SetUseTextActor3D( int val );
int GetUseTextActor3D();
// Description:
// Get/Set 2D mode
// NB: Use vtkTextActor for titles in 2D instead of vtkAxisFollower
void SetUse2DMode( int val );
int GetUse2DMode();
// Description:
// For 2D mode only: save axis title positions for later use
void SetSaveTitlePosition( int val );
// Description:
// Provide an oriented bounded box when using AxisBaseFor.
vtkSetVector6Macro(OrientedBounds,double);
vtkGetVector6Macro(OrientedBounds, double);
// Description:
// Enable/Disable the usage of the OrientedBounds
vtkSetMacro(UseOrientedBounds, int);
vtkGetMacro(UseOrientedBounds, int);
// Description:
// Vector that should be use as the base for X
vtkSetVector3Macro(AxisBaseForX,double);
vtkGetVector3Macro(AxisBaseForX, double);
// Description:
// Vector that should be use as the base for Y
vtkSetVector3Macro(AxisBaseForY,double);
vtkGetVector3Macro(AxisBaseForY, double);
// Description:
// Vector that should be use as the base for Z
vtkSetVector3Macro(AxisBaseForZ,double);
vtkGetVector3Macro(AxisBaseForZ, double);
// Description:
// Provide a custom AxisOrigin. This point must be inside the bouding box and
// will represent the point where the 3 axes will interesect
vtkSetVector3Macro(AxisOrigin,double);
vtkGetVector3Macro(AxisOrigin, double);
// Description:
// Enable/Disable the usage of the AxisOrigin
vtkSetMacro(UseAxisOrigin, int);
vtkGetMacro(UseAxisOrigin, int);
// Description:
// Specify the mode in which the cube axes should render its gridLines
vtkSetMacro(GridLineLocation,int);
vtkGetMacro(GridLineLocation,int);
// Description:
// Enable/Disable axis stickiness. When on, the axes will be adjusted to always
// be visible in the viewport unless the original bounds of the axes are entirely
// outside the viewport. Defaults to off.
vtkSetMacro(StickyAxes,int);
vtkGetMacro(StickyAxes,int);
vtkBooleanMacro(StickyAxes,int);
// Description:
// Enable/Disable centering of axes when the Sticky option is
// on. If on, the axes bounds will be centered in the
// viewport. Otherwise, the axes can move about the longer of the
// horizontal or verical directions of the viewport to follow the
// data. Defaults to on.
vtkSetMacro(CenterStickyAxes,int);
vtkGetMacro(CenterStickyAxes,int);
vtkBooleanMacro(CenterStickyAxes,int);
protected:
vtkCubeAxesActor();
~vtkCubeAxesActor();
// Description:
// Computes a bounding sphere used to determine the sticky bounding box.
// Sphere center and sphere radius are return parameters and can remain uninitialized
// prior to calling this method.
void ComputeStickyAxesBoundingSphere(vtkViewport* viewport, const double bounds[6],
double sphereCenter[3], double & sphereRadius);
// Description:
// Get bounds such that the axes are entirely within a viewport
void GetViewportLimitedBounds(vtkViewport* viewport, double bounds[6]);
// Description:
// Get the bits for a bounds point. 0 means the lower side for a
// coordinate, 1 means the higher side.
static void GetBoundsPointBits(unsigned int pointIndex,
unsigned int & xBit,
unsigned int & yBit,
unsigned int & zBit);
// Description:
// Get a point on the bounding box by point index
static void GetBoundsPoint(unsigned int pointIndex, const double bounds[6], double point[3]);
int LabelExponent(double min, double max);
int Digits(double min, double max);
double MaxOf(double, double);
double MaxOf(double, double, double, double);
double FFix(double);
double FSign(double, double);
int FRound( double fnt );
int GetNumTicks( double range, double fxt);
void UpdateLabels(vtkAxisActor **axis, int index);
double Bounds[6]; //Define bounds explicitly
vtkCamera *Camera;
int FlyMode;
// Expose internally closest axis index computation
int FindClosestAxisIndex(double pts[8][3]);
// Expose internally furthest axis index computation
int FindFurtherstAxisIndex(double pts[8][3]);
// Expose internally the boundary edge fly mode axis index computation
void FindBoundaryEdge(int &indexOfAxisX, int &indexOfAxisY, int &indexOfAxisZ,
double pts[8][3]);
// Description:
// This will Update AxisActors with GridVisibility when those should be
// dynamaic regarding the viewport.
// GridLineLocation = [VTK_CLOSEST_GRID_LINES, VTK_FURTHEST_GRID_LINES]
void UpdateGridLineVisibility(int axisIndex);
// VTK_ALL_GRID_LINES 0
// VTK_CLOSEST_GRID_LINES 1
// VTK_FURTHEST_GRID_LINES 2
int GridLineLocation;
// Description:
// Flag for axes stickiness
int StickyAxes;
// Description:
// Flag for centering sticky axes
int CenterStickyAxes;
// Description:
// If enabled the actor will not be visible at a certain distance from the camera.
// Default is true
int EnableDistanceLOD;
// Description:
// Default is 0.80
// This determines at what fraction of camera far clip range, actor is not visible.
double DistanceLODThreshold;
// Description:
// If enabled the actor will not be visible at a certain view angle.
// Default is true.
int EnableViewAngleLOD;
// Description:
// This determines at what view angle to geometry will make the geometry not visibile.
// Default is 0.3.
double ViewAngleLODThreshold;
// Description:
// Control variables for all axes
// NB: [0] always for 'Major' axis during non-static fly modes.
vtkAxisActor *XAxes[NUMBER_OF_ALIGNED_AXIS];
vtkAxisActor *YAxes[NUMBER_OF_ALIGNED_AXIS];
vtkAxisActor *ZAxes[NUMBER_OF_ALIGNED_AXIS];
bool RebuildAxes;
char *XTitle;
char *XUnits;
char *YTitle;
char *YUnits;
char *ZTitle;
char *ZUnits;
char *ActualXLabel;
char *ActualYLabel;
char *ActualZLabel;
int TickLocation;
int XAxisVisibility;
int YAxisVisibility;
int ZAxisVisibility;
int XAxisTickVisibility;
int YAxisTickVisibility;
int ZAxisTickVisibility;
int XAxisMinorTickVisibility;
int YAxisMinorTickVisibility;
int ZAxisMinorTickVisibility;
int XAxisLabelVisibility;
int YAxisLabelVisibility;
int ZAxisLabelVisibility;
int DrawXGridlines;
int DrawYGridlines;
int DrawZGridlines;
int DrawXInnerGridlines;
int DrawYInnerGridlines;
int DrawZInnerGridlines;
int DrawXGridpolys;
int DrawYGridpolys;
int DrawZGridpolys;
char *XLabelFormat;
char *YLabelFormat;
char *ZLabelFormat;
double CornerOffset;
int Inertia;
int RenderCount;
int InertiaLocs[3];
int RenderSomething;
vtkTextProperty* TitleTextProperty[3];
vtkStringArray* AxisLabels[3];
vtkTextProperty* LabelTextProperty[3];
vtkProperty *XAxesLinesProperty;
vtkProperty *YAxesLinesProperty;
vtkProperty *ZAxesLinesProperty;
vtkProperty *XAxesGridlinesProperty;
vtkProperty *YAxesGridlinesProperty;
vtkProperty *ZAxesGridlinesProperty;
vtkProperty *XAxesInnerGridlinesProperty;
vtkProperty *YAxesInnerGridlinesProperty;
vtkProperty *ZAxesInnerGridlinesProperty;
vtkProperty *XAxesGridpolysProperty;
vtkProperty *YAxesGridpolysProperty;
vtkProperty *ZAxesGridpolysProperty;
double RenderedBounds[6];
double OrientedBounds[6];
int UseOrientedBounds;
double AxisOrigin[3];
int UseAxisOrigin;
double AxisBaseForX[3];
double AxisBaseForY[3];
double AxisBaseForZ[3];
private:
vtkCubeAxesActor(const vtkCubeAxesActor&); // Not implemented
void operator=(const vtkCubeAxesActor&); // Not implemented
vtkSetStringMacro(ActualXLabel);
vtkSetStringMacro(ActualYLabel);
vtkSetStringMacro(ActualZLabel);
vtkTimeStamp BuildTime;
int LastUseOrientedBounds;
int LastXPow;
int LastYPow;
int LastZPow;
int UserXPow;
int UserYPow;
int UserZPow;
bool AutoLabelScaling;
int LastXAxisDigits;
int LastYAxisDigits;
int LastZAxisDigits;
double LastXRange[2];
double LastYRange[2];
double LastZRange[2];
double LastBounds[6];
int LastFlyMode;
int RenderAxesX[NUMBER_OF_ALIGNED_AXIS];
int RenderAxesY[NUMBER_OF_ALIGNED_AXIS];
int RenderAxesZ[NUMBER_OF_ALIGNED_AXIS];
int NumberOfAxesX;
int NumberOfAxesY;
int NumberOfAxesZ;
bool MustAdjustXValue;
bool MustAdjustYValue;
bool MustAdjustZValue;
bool ForceXLabelReset;
bool ForceYLabelReset;
bool ForceZLabelReset;
double XAxisRange[2];
double YAxisRange[2];
double ZAxisRange[2];
double LabelScale;
double TitleScale;
double ScreenSize;
double LabelOffset;
double TitleOffset;
// Description:
// Major start and delta values, in each direction.
// These values are needed for inner grid lines generation
double MajorStart[3];
double DeltaMajor[3];
int RenderGeometry(bool &initialRender, vtkViewport *viewport, bool checkAxisVisibility,int (vtkAxisActor::*renderMethod)(vtkViewport*));
void TransformBounds(vtkViewport *viewport, const double bounds[6],
double pts[8][3]);
void AdjustAxes(double bounds[6],
double xCoords[NUMBER_OF_ALIGNED_AXIS][6],
double yCoords[NUMBER_OF_ALIGNED_AXIS][6],
double zCoords[NUMBER_OF_ALIGNED_AXIS][6],
double xRange[2], double yRange[2], double zRange[2]);
bool ComputeTickSize(double bounds[6]);
void AdjustValues(const double xRange[2],
const double yRange[2],
const double zRange[2]);
void AdjustRange(const double bounds[6]);
void BuildAxes(vtkViewport *);
void DetermineRenderAxes(vtkViewport *);
void SetNonDependentAttributes(void);
void BuildLabels(vtkAxisActor *axes[NUMBER_OF_ALIGNED_AXIS]);
void AdjustTicksComputeRange(vtkAxisActor *axes[NUMBER_OF_ALIGNED_AXIS],
double rangeMin, double rangeMax);
void AutoScale(vtkViewport *viewport);
void AutoScale(vtkViewport *viewport, vtkAxisActor *axes[NUMBER_OF_ALIGNED_AXIS]);
double AutoScale(vtkViewport *viewport, double screenSize, double position[3]);
};
#endif
|