X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESHFiltersSelection%2FSMESH_TypeFilter.hxx;h=442d72dadb83e69f3a25a1c3d12287415b7b5b13;hp=9e98ab8b8e2510c762513e8c7217bfb48ab083a8;hb=287d1c47201de439b4f52eae1f79a03ad110cd97;hpb=bef9beee88cac57394b8dc3bc914381c1a2fff83 diff --git a/src/SMESHFiltersSelection/SMESH_TypeFilter.hxx b/src/SMESHFiltersSelection/SMESH_TypeFilter.hxx index 9e98ab8b8..442d72dad 100644 --- a/src/SMESHFiltersSelection/SMESH_TypeFilter.hxx +++ b/src/SMESHFiltersSelection/SMESH_TypeFilter.hxx @@ -1,95 +1,25 @@ -// File generated by CPPExt (Transient) -// -// Copyright (C) 1991,1995 by -// -// MATRA DATAVISION, FRANCE -// -// This software is furnished in accordance with the terms and conditions -// of the contract and with the inclusion of the above copyright notice. -// This software or any other copy thereof may not be provided or otherwise -// be made available to any other person. No title to an ownership of the -// software is hereby transferred. -// -// At the termination of the contract, the software and all copies of this -// software must be deleted. -// +// File : SMESH_TypeFilter.hxx +// Module : SMESH + #ifndef _SMESH_TypeFilter_HeaderFile #define _SMESH_TypeFilter_HeaderFile -#ifndef _Handle_SMESH_TypeFilter_HeaderFile -#include "Handle_SMESH_TypeFilter.hxx" -#endif - -#include "SALOME_InteractiveObject.hxx" -#include "SALOME_Filter.hxx" #include "SMESH_Type.h" +#include "SUIT_SelectionFilter.h" -// Open CASCADE Includes -#include - -class SMESH_TypeFilter : public SALOME_Filter { +class SUIT_DataOwner; +class SMESH_TypeFilter : public SUIT_SelectionFilter +{ public: + SMESH_TypeFilter (MeshObjectType theType); + ~SMESH_TypeFilter(); - inline void* operator new(size_t,void* anAddress) - { - return anAddress; - } - inline void* operator new(size_t size) - { - return Standard::Allocate(size); - } - inline void operator delete(void *anAddress) - { - if (anAddress) Standard::Free((Standard_Address&)anAddress); - } -// inline void operator delete(void *anAddress, size_t size) -// { -// if (anAddress) Standard::Free((Standard_Address&)anAddress,size); -// } - // Methods PUBLIC - // -Standard_EXPORT SMESH_TypeFilter(MeshObjectType aType); -Standard_EXPORT virtual Standard_Boolean IsOk(const Handle(SALOME_InteractiveObject)& anobj) const; -Standard_EXPORT ~SMESH_TypeFilter(); - - - - - // Type management - // - Standard_EXPORT friend Handle_Standard_Type& SMESH_TypeFilter_Type_(); - Standard_EXPORT const Handle(Standard_Type)& DynamicType() const; - Standard_EXPORT Standard_Boolean IsKind(const Handle(Standard_Type)&) const; + virtual bool isOk (const SUIT_DataOwner*) const; + MeshObjectType type() const; protected: - - // Methods PROTECTED - // - - - // Fields PROTECTED - // -MeshObjectType myKind; - -private: - - // Methods PRIVATE - // - - - // Fields PRIVATE - // - - + MeshObjectType myType; }; - - - - -// other inline functions and methods (like "C++: function call" methods) -// - - #endif