4#include "contactmodel/interface/icontactmodel.h"
5#include "contactmodel_global.h"
8#include "shared/src/archivestream.h"
17 #define cmodelsxd cmodels2d
19 #define cmodelsxd cmodels3d
24#pragma warning(disable:4251)
35 class ContactModelState;
37 static const quint32 ACTIVE_IS = 0x000001;
38 static const quint32 ACTIVATED = 0x000002;
39 static const quint32 ACTIVE_COULDBE = 0x000004;
104 QString
getName()
const override =0;
125 int isProperty(
const QString &c,Qt::CaseSensitivity cs=Qt::CaseInsensitive)
const override;
134 bool getPropertyReadOnly(uint)
const override {
return false; }
135 bool supportsInheritance(uint)
const override {
return false; }
136 bool getInheritance(uint)
const override {
return false;}
137 void setInheritance(uint,
bool)
override {}
139 QString getMethods()
const override {
return QString();}
142 int isMethod(
const QString &c,Qt::CaseSensitivity cs=Qt::CaseInsensitive)
const override;
148 bool setMethod(uint,
const QVector<QVariant> &,[[maybe_unused]]
IContact*c=0)
override {
return false;}
154 int isEnergy(
const QString &c,Qt::CaseSensitivity cs=Qt::CaseInsensitive)
const override;
172 void destroy()
override {
delete this; }
175 void getSphereList(
const IContact *con,std::vector<DVect> *pos,std::vector<double> *rad,std::vector<double> *val)
override =0;
178 void getDiskList(
const IContact *con,std::vector<DVect> *pos,std::vector<DVect> *normal,std::vector<double> *radius,std::vector<double> *val)
override =0;
181 void getCylinderList(
const IContact *con,std::vector<DVect> *bot,std::vector<DVect> *top,std::vector<double> *radlow,std::vector<double> *radhi,std::vector<double> *val)
override =0;
187 void setEventVal(
int i,
int j);
198 uint getPropertyIndex(
const QString &name,Qt::CaseSensitivity cs=Qt::CaseInsensitive)
const;
201 QString getPropertyName(uint index)
const;
209 void *
operator new(
size_t size);
210 void *
operator new(
size_t size,
const char *name,
const char *file,
unsigned line);
211 void operator delete(
void *v);
212 void operator delete(
void *v,
const char *name,
const char *file,
unsigned line);
213 typedef void *(*NewFunction)(size_t,
const char *,
const char *,unsigned);
214 typedef void (*DeleteFunction)(
void *,
const char *,
const char *,unsigned);
215 typedef std::pair<NewFunction,DeleteFunction> AllocFunctions;
216 static AllocFunctions setAllocFunctions(AllocFunctions afunc);
217 static AllocFunctions getDefaultAllocFunctions();
218 static AllocFunctions getAllocFunctions() {
return AllocFunctions(newFunc_,deleteFunc_); }
221 static NewFunction newFunc_;
222 static DeleteFunction deleteFunc_;
An array class that attempts to minimize unnecessary heap access.
Definition farray.h:25
The main program access point.
Definition iprogram.h:37
An array class that attempts to minimize unnecessary heap access.
EXPORT_TAG unsigned getMinorVersion()
Definition fishexample.cpp:62
EXPORT_TAG unsigned getMajorVersion()
Definition fishexample.cpp:56
EXPORT_TAG const char * getName()
Definition fishexample.cpp:43
namespace Itasca
Definition basememory.cpp:10
Itasca Library standard namespace, specific to 2D or 3D.
Definition icontactmodule.h:4