Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

hyp.data.base.h

00001 /*
00002 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
00003  Ephydryne Components.
00004  Ephydryne is a part of the Hyperion Project.
00005 ----------------------------------------------------------
00006  Copyright (c) 2001 Pierre Rebours.
00007 
00008  This library is free software; you can redistribute it and/or
00009  modify it under the terms of the GNU Lesser General Public
00010  License as published by the Free Software Foundation; either
00011  version 2.1 of the License, or (at your option) any later version.
00012 
00013  This library is distributed in the hope that it will be useful,
00014  but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00016  
00017  See hyp.license.txt file for more information about the license.
00018  
00019  Web: http://lagrandeporte.multimania.com/hyperion
00020  Email: pierre_rebours@yahoo.com
00021 ----------------------------------------------------------
00022  CVS
00023  $Log$
00024  
00025  Creation 26/03/01 Pierre Rebours
00026 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
00027 */
00028 
00029 
00030 #ifndef _hyp_data_base_h_
00031 #define _hyp_data_base_h_
00032 
00033 
00034 #ifndef hypfem_INSIDE_INTERN
00035 #error Inclusion not allowed (include hyp.fem.intern.h instead)
00036 #endif
00037 
00047 class CGeometricBase :
00048 #ifdef hypfem_IDENTIFY_CONSTRUCTION_ON
00049 protected CIDClass,
00050 #endif
00051 public IGeometricBase,
00052 public hyp_ker::CUnknown
00053 {
00054 public:
00056         CGeometricBase(hyp_ker::IUnknown*);
00057         virtual ~CGeometricBase();
00058         hyp_DECLARE_IUNKNOWN
00059         virtual hyp_ker::com_result NondelegatingQueryInterface(const hyp_ker::hypIID&,void**);
00060         static hyp_ker::com_result CreateInstance(hyp_ker::IUnknown* ,hyp_ker::CUnknown**);
00061         hyp_ker::com_result Init(void); 
00062         void FinalRelease(void);
00064         
00068         virtual t_size GetNumberOfVertices();
00069         virtual IGeometricVertex* GetVertex(const t_label& );
00070         virtual IGeometricVertex* GetVertex(const t_real& ,const t_real& ,const t_real& );
00071         virtual t_label GetLabel(IGeometricVertex*);
00072         virtual void AddVertex(IGeometricVertex*,const t_label& );
00073         virtual void DeleteVertex(const t_label& );
00074         virtual IContainerKey* GetContainerOfVertices();
00075         virtual void SetFilter(const hyp_ker::hypIID* );
00076         virtual void ClearFilter();
00078 
00079 private:
00080         hyp_ker::IPtrUnknown m_spUnknownCont;   
00081 
00082         //filtre à l'ajout
00083         bool IsCompatibleWithFilter(IGeometricVertex*) const;
00084         typedef std::vector<const hyp_ker::hypIID*> t_ContainerForIID;
00085         t_ContainerForIID m_Filter;
00086 };
00087 
00088 #endif

Top of Page
written by Pierre Rebours © 2000-2001. Terms of Use.