2 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 * Copyright (C) 2010-2010 - DIGITEO - Bruno JOFRET
5 * This file must be used under the terms of the CeCILL.
6 * This source file is licensed as described in the file COPYING, which
7 * you should have received as part of this distribution. The terms
8 * are also available at
9 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
21 #include "NgonGeneralData.hxx"
22 #include "NgonGridData.hxx"
23 #include "NgonGridMatplotData.hxx"
24 #include "NgonPolylineData.hxx"
25 #include "TriangleMeshData.hxx"
26 #include "TriangleMeshFecData.hxx"
28 #include "graphicObjectProperties.h"
41 m_dataMap = new std::map<std::string, Data3D*>();
45 static DataModel *get()
49 m_me = new DataModel();
57 * Sets a graphic object property
58 * As some set methods allocate memory, the FALSE return value also indicates
59 * a failed allocation for these methods, which overlaps with the non-existing
60 * property return value (also FALSE); returning an int, with -1 for a failed
61 * allocation would possibly solve this problem.
63 BOOL setGraphicObjectProperty(char const* _pstID, int _iName, void const* _dblValue, int numElements);
65 /** Returns a graphic object vector property */
66 void getGraphicObjectProperty(char const* _pstID, int _iName, void **_pvData);
68 /** Creates a data object */
69 char const* createDataObject(char const* _pstID, int _iType);
72 * Deletes a data object
74 void deleteDataObject(char const* _pstID);
77 static DataModel *m_me;
79 std::map<std::string, Data3D*> *m_dataMap;