You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
85 lines
2.5 KiB
C
85 lines
2.5 KiB
C
3 weeks ago
|
/*=========================================================================
|
||
|
|
||
|
Program: Visualization Toolkit
|
||
|
Module: vtkImplicitFunctionCollection.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.
|
||
|
|
||
|
=========================================================================*/
|
||
|
/**
|
||
|
* @class vtkImplicitFunctionCollection
|
||
|
* @brief maintain a list of implicit functions
|
||
|
*
|
||
|
* vtkImplicitFunctionCollection is an object that creates and manipulates
|
||
|
* lists of objects of type vtkImplicitFunction.
|
||
|
* @sa
|
||
|
* vtkCollection vtkPlaneCollection
|
||
|
*/
|
||
|
|
||
|
#ifndef vtkImplicitFunctionCollection_h
|
||
|
#define vtkImplicitFunctionCollection_h
|
||
|
|
||
|
#include "vtkCollection.h"
|
||
|
#include "vtkCommonDataModelModule.h" // For export macro
|
||
|
|
||
|
#include "vtkImplicitFunction.h" // Needed for inline methods
|
||
|
|
||
|
class VTKCOMMONDATAMODEL_EXPORT vtkImplicitFunctionCollection : public vtkCollection
|
||
|
{
|
||
|
public:
|
||
|
vtkTypeMacro(vtkImplicitFunctionCollection, vtkCollection);
|
||
|
static vtkImplicitFunctionCollection* New();
|
||
|
|
||
|
/**
|
||
|
* Add an implicit function to the list.
|
||
|
*/
|
||
|
void AddItem(vtkImplicitFunction*);
|
||
|
|
||
|
/**
|
||
|
* Get the next implicit function in the list.
|
||
|
*/
|
||
|
vtkImplicitFunction* GetNextItem();
|
||
|
|
||
|
//@{
|
||
|
/**
|
||
|
* Reentrant safe way to get an object in a collection. Just pass the
|
||
|
* same cookie back and forth.
|
||
|
*/
|
||
|
vtkImplicitFunction* GetNextImplicitFunction(vtkCollectionSimpleIterator& cookie)
|
||
|
{
|
||
|
return static_cast<vtkImplicitFunction*>(this->GetNextItemAsObject(cookie));
|
||
|
}
|
||
|
//@}
|
||
|
|
||
|
protected:
|
||
|
vtkImplicitFunctionCollection() {}
|
||
|
~vtkImplicitFunctionCollection() override {}
|
||
|
|
||
|
private:
|
||
|
// hide the standard AddItem from the user and the compiler.
|
||
|
void AddItem(vtkObject* o) { this->vtkCollection::AddItem(o); }
|
||
|
|
||
|
private:
|
||
|
vtkImplicitFunctionCollection(const vtkImplicitFunctionCollection&) = delete;
|
||
|
void operator=(const vtkImplicitFunctionCollection&) = delete;
|
||
|
};
|
||
|
|
||
|
inline void vtkImplicitFunctionCollection::AddItem(vtkImplicitFunction* f)
|
||
|
{
|
||
|
this->vtkCollection::AddItem(f);
|
||
|
}
|
||
|
|
||
|
inline vtkImplicitFunction* vtkImplicitFunctionCollection::GetNextItem()
|
||
|
{
|
||
|
return static_cast<vtkImplicitFunction*>(this->GetNextItemAsObject());
|
||
|
}
|
||
|
|
||
|
#endif
|
||
|
// VTK-HeaderTest-Exclude: vtkImplicitFunctionCollection.h
|