mirror of
https://github.com/OpenFOAM/ThirdParty-6.git
synced 2025-12-08 06:57:43 +00:00
79 lines
2.4 KiB
C++
79 lines
2.4 KiB
C++
// -*- c++ -*-
|
|
/*=========================================================================
|
|
|
|
Program: Visualization Toolkit
|
|
Module: vtkSLACPlaneGlyphs.h
|
|
|
|
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
|
|
All rights reserved.
|
|
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.
|
|
|
|
=========================================================================*/
|
|
/*----------------------------------------------------------------------------
|
|
Copyright (c) Sandia Corporation
|
|
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
|
|
----------------------------------------------------------------------------*/
|
|
|
|
// .NAME vtkSLACPlaneGlyphs - Create evenly spaced glyphs on a plane through data.
|
|
//
|
|
// .SECTION Description
|
|
//
|
|
// This filter probes a volume with regularly spaced samples on a plane and
|
|
// generates oriented glyphs. It also supports some special scaling of
|
|
// the glyphs to look nice on electric field data.
|
|
//
|
|
|
|
#ifndef vtkSLACPlaneGlyphs_h
|
|
#define vtkSLACPlaneGlyphs_h
|
|
|
|
#include "vtkPolyDataAlgorithm.h"
|
|
|
|
class vtkSLACPlaneGlyphs : public vtkPolyDataAlgorithm
|
|
{
|
|
public:
|
|
vtkTypeMacro(vtkSLACPlaneGlyphs, vtkPolyDataAlgorithm);
|
|
static vtkSLACPlaneGlyphs *New();
|
|
virtual void PrintSelf(ostream &os, vtkIndent indent);
|
|
|
|
// Description:
|
|
// The location of the center of the plane. A point is guaranteed to be here.
|
|
vtkGetVector3Macro(Center, double);
|
|
vtkSetVector3Macro(Center, double);
|
|
|
|
// Description:
|
|
// The normal to the plane.
|
|
vtkGetVector3Macro(Normal, double);
|
|
vtkSetVector3Macro(Normal, double);
|
|
|
|
// Description:
|
|
// The approximate number of samples in each direction that will intersect the
|
|
// input bounds.
|
|
vtkGetMacro(Resolution, int);
|
|
vtkSetMacro(Resolution, int);
|
|
|
|
protected:
|
|
vtkSLACPlaneGlyphs();
|
|
~vtkSLACPlaneGlyphs();
|
|
|
|
double Center[3];
|
|
double Normal[3];
|
|
int Resolution;
|
|
|
|
virtual int FillInputPortInformation(int port, vtkInformation *info);
|
|
|
|
virtual int RequestData(vtkInformation *request,
|
|
vtkInformationVector **inputVector,
|
|
vtkInformationVector *outputVector);
|
|
|
|
private:
|
|
vtkSLACPlaneGlyphs(const vtkSLACPlaneGlyphs &);
|
|
void operator=(const vtkSLACPlaneGlyphs &);
|
|
};
|
|
|
|
#endif //vtkSLACPlaneGlyphs_h
|
|
|