Go to the documentation of this file.
40 #ifndef vtkGlobeSource_h
41 #define vtkGlobeSource_h
43 #include "vtkGeovisCoreModule.h"
50 #if !defined(VTK_LEGACY_REMOVE)
63 vtkSetVector3Macro(Origin,
double);
70 vtkSetClampMacro(StartLongitude,
double,-180.0,180.0);
71 vtkSetClampMacro(EndLongitude,
double,-180.0,180.0);
72 vtkSetClampMacro(StartLatitude,
double,-90.0,90.0);
73 vtkSetClampMacro(EndLatitude,
double,-90.0,90.0);
81 vtkSetClampMacro(LongitudeResolution,
int,3,100);
82 vtkGetMacro(LongitudeResolution,
int);
90 vtkSetClampMacro(LatitudeResolution,
int,3,100);
91 vtkGetMacro(LatitudeResolution,
int);
99 vtkGetMacro(Radius,
double);
103 vtkSetMacro(AutoCalculateCurtainHeight,
bool);
104 vtkGetMacro(AutoCalculateCurtainHeight,
bool);
105 vtkBooleanMacro(AutoCalculateCurtainHeight,
bool);
113 vtkGetMacro(CurtainHeight,
double);
142 double theta,
double phi,
double radius,
double*
point,
double* normal =
nullptr);
149 double* x,
double& theta,
double& phi);
161 double theta,
double phi,
double radius,
188 #endif //VTK_LEGACY_REMOVE
represent and manipulate 3D points
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTypeBool QuadrilateralTessellation
dynamic, self-adjusting array of float
static vtkGlobeSource * New()
Construct sphere with radius=0.5 and default resolution 8 in both latitude and longitude directions.
Sphere patch with Lat/Long scalar array.
static void ComputeGlobePoint(double theta, double phi, double radius, double *point, double *normal=nullptr)
Calculates the normal and point on a sphere with a specified radius at the spherical coordinates thet...
a simple class to control print indentation
object to represent cell connectivity
bool AutoCalculateCurtainHeight
~vtkGlobeSource() override
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void AddPoint(double theta, double phi, double radius, vtkPoints *newPoints, vtkFloatArray *newNormals, vtkFloatArray *newLongitudeArray, vtkFloatArray *newLatitudeArray, vtkDoubleArray *newLatLongArray)
dynamic, self-adjusting array of double
static void ComputeLatitudeLongitude(double *x, double &theta, double &phi)
Calculates the spherical coordinates theta and phi based on the point on a sphere.
Superclass for algorithms that produce only polydata as output.