comac_desk_app/ThirdpartyLibs/Libs/windows-x86_64/vtk/include/vtkImplicitFunctionCollecti...

85 lines
2.5 KiB
C
Raw Normal View History

2024-11-21 11:50:43 +08:00
/*=========================================================================
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();
void PrintSelf(ostream& os, vtkIndent indent) override;
/**
* 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() = default;
~vtkImplicitFunctionCollection() override = default;
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