geom/src/XAO/Xao.hxx

77 lines
2.2 KiB
C++
Raw Normal View History

2013-01-14 13:10:35 +00:00
// Copyright (C) 2007-2012 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
// Author : Nathalie Gore (OpenCascade)
#ifndef __XAO_XAO_HXX__
#define __XAO_XAO_HXX__
#include <string>
2013-03-28 08:49:23 +00:00
#include <list>
2013-01-14 13:10:35 +00:00
namespace XAO
{
2013-03-28 08:49:23 +00:00
enum Kind{
VERTEX,
EDGE,
FACE,
SOLID
};
2013-01-14 13:10:35 +00:00
class Geometry;
class Group;
class Field;
class Xao
{
public:
2013-03-28 08:49:23 +00:00
Xao();
Xao(const char *author, const char *version);
~Xao();
2013-01-14 13:10:35 +00:00
void setAuthor(const char *author) { _myAuthor=author; }
const char *getAuthor() const { return _myAuthor.c_str(); }
2013-03-28 08:49:23 +00:00
2013-01-14 13:10:35 +00:00
void setVersion(const char *version) { _myVersion=version; }
const char *getVersion() const { return _myVersion.c_str(); }
2013-03-28 08:49:23 +00:00
void setGeometry(Geometry *myGeometry) { _myGeometry=myGeometry; }
const Geometry *getGeometry() const { return _myGeometry; }
int getNbGroups() { return _myGroups.size(); }
void addGroup(Group *myGroup) { _myGroups.push_back(myGroup); }
void removeGroup(Group *myGroup) { _myGroups.remove(myGroup); }
2013-01-14 13:10:35 +00:00
int getNbFields() { return _myNbFields; }
2013-03-28 08:49:23 +00:00
bool Export(const char* fileName);
2013-01-14 13:10:35 +00:00
private:
2013-03-28 08:49:23 +00:00
std::string _myAuthor;
std::string _myVersion;
Geometry *_myGeometry;
int _myNbGroups;
std::list<Group *> _myGroups;
int _myNbFields;
//std::list<Field *> _myFields;
2013-01-14 13:10:35 +00:00
};
}
#endif