OpenLexocad  27.1
Core::Variant Class Reference

#include <Variant.h>

Public Types

enum  Type {
  Undefined = 0, UInt8, UInt8List, UInt32,
  UInt64, Integer, IntegerList, Long,
  Double, StdString, String, Bool,
  StdStringList, StringList, MaterialList, Texture2List,
  Color, MColor, ColorList, MColorList,
  Texture2, Texture2Transform, TextureCoordinateMapping, TextureCoordinateFunction,
  DrawStyle, Arrowheads, Material, Object,
  ObjectSet, ObjectVector, Font, DateTime,
  DateTimeList, SearchSettings, SearchSettingsVector, Axis1,
  Axis2, Axis2d, Axis22d, Placement,
  Point, Point2d, Vector, Direction,
  Transform, GTransform, VectorList, PointList,
  Point2dList, Md5, BrepData, BrepDataSet,
  Shape, ConstShape, RealList, L2D_Placement,
  ListPointList, CompoundPlaneAngle, VariantList, GUID,
  ImportData, IfcEntity, LinkList, SketcherConstraintList,
  GeomGeometryList, CoreDocument, User = 127
}
 

Public Member Functions

 Variant ()
 
 Variant (const Variant &in)
 
 Variant (int i)
 
 Variant (long i)
 
 Variant (uint8_t i)
 
 Variant (uint32_t i)
 
 Variant (uint64_t i)
 
 Variant (double d)
 
 Variant (const wchar_t *s)
 
 Variant (const Base::String &s)
 
 Variant (bool b)
 
 Variant (const Base::Color &c)
 
 Variant (const Base::MColor &c)
 
 Variant (const std::vector< Base::Color > &cl)
 
 Variant (const std::vector< Base::MColor > &cl)
 
 Variant (const Draw::OglMaterial &m)
 
 Variant (const Draw::Texture2 &t)
 
 Variant (const Draw::Texture2Transform &ttf)
 
 Variant (const Draw::TextureCoordinateMapping &tcm)
 
 Variant (const Draw::TextureCoordinateFunction &tcf)
 
 Variant (const Draw::DrawStyle &ds)
 
 Variant (const Draw::Arrowheads &ah)
 
 Variant (const std::list< std::string > &sl)
 
 Variant (const std::list< Base::String > &sl)
 
 Variant (const std::map< int, Draw::OglMaterial > &ml)
 
 Variant (const std::map< int, Draw::Texture2 > &tl)
 
 Variant (const Geom::Ax1 &ax1)
 
 Variant (const Geom::Ax2 &ax2)
 
 Variant (const Geom::Ax2d &ax2d)
 
 Variant (const Geom::Ax22d &ax22d)
 
 Variant (Core::DocObject *o)
 
 Variant (const std::unordered_set< Core::DocObject * > &oset)
 
 Variant (const std::vector< Core::DocObject * > &objects)
 
 Variant (const Geom::Pnt &p)
 
 Variant (const Geom::Pnt2d &p)
 
 Variant (const Geom::Vec &v)
 
 Variant (const Geom::Dir &dir)
 
 Variant (const Geom::Trsf &t)
 
 Variant (const Geom::GTrsf &t)
 
 Variant (const std::vector< int > &ilist)
 
 Variant (const std::vector< uint8_t > &ilist)
 
 Variant (const std::list< Geom::Vec > &vlist)
 
 Variant (const std::vector< Geom::Pnt > &plist)
 
 Variant (const std::vector< Geom::Pnt2d > &plist)
 
 Variant (const MD5 &v)
 
 Variant (pBrepData data)
 
 Variant (const std::vector< pBrepData > &dataSet)
 
 Variant (pShape shape)
 
 Variant (pConstShape shape)
 
 Variant (const std::vector< double > &value)
 
 Variant (const std::list< std::list< Geom::Pnt >> &the_list)
 
 Variant (const Geom::CompoundPlaneAngle &compangle)
 
 Variant (const std::vector< Core::Variant > &varList)
 
 Variant (const Base::GlobalId &id)
 
 Variant (const std::shared_ptr< ImportMessageDataType > aData)
 
 Variant (const std::shared_ptr< LxIfcBase::LxIfcEntity > aEntity)
 
 Variant (const std::list< Core::DocObject * > &list)
 
 Variant (const std::vector< Geom::Geometry * > &aValue)
 
 Variant (Core::CoreDocument *value)
 
 ~Variant (void)
 
bool operator== (const Variant &other) const
 
bool operator!= (const Variant &other) const
 
Variant::Type getType () const
 
virtual int getUserType () const
 Must be overwritten for custom types. More...
 
bool canConvert (Variant::Type t) const
 
uint64_t toUInt64 (bool *ok=0) const
 
uint32_t toUInt32 (bool *ok=0) const
 
uint8_t toUInt8 (bool *ok=0) const
 
int toInteger (bool *ok=0) const
 
long toLong (bool *ok=0) const
 
std::string toStdString (bool *ok=0) const
 
Base::String toString (bool *ok=0) const
 
double toDouble (bool *ok=0) const
 
bool toBool (bool *ok=0) const
 
Base::Color toColor (bool *ok=0) const
 
std::vector< Base::ColortoColorList (bool *ok=0) const
 
Draw::OglMaterial toMaterial (bool *ok=0) const
 
Draw::Texture2 toTexture2 (bool *ok=0) const
 
Draw::Texture2Transform toTexture2Transform (bool *ok=0) const
 
Draw::TextureCoordinateMapping toTextureCoordinateMapping (bool *ok=0) const
 
Draw::TextureCoordinateFunction toTextureCoordinateFunction (bool *ok=0) const
 
Draw::DrawStyle toDrawStyle (bool *ok=0) const
 
Draw::Arrowheads toArrowheads (bool *ok=0) const
 
std::list< std::string > toStdStringList (bool *ok=0) const
 
std::list< Base::StringtoStringList (bool *ok=0) const
 
std::map< int, Draw::OglMaterial > toMaterialList (bool *ok=0) const
 
std::map< int, Draw::Texture2 > toTexture2List (bool *ok=0) const
 
Geom::Ax1 toAxis1 (bool *ok=0) const
 
Geom::Ax2 toAxis2 (bool *ok=0) const
 
Geom::Ax2d toAxis2d (bool *ok=0) const
 
Geom::Ax22d toAxis22d (bool *ok=0) const
 
Core::DocObjecttoObject (bool *ok=0) const
 
Core::CoreDocumenttoCoreDocument (bool *ok=0) const
 
std::unordered_set< Core::DocObject * > toObjectSet (bool *ok=0) const
 
std::vector< Core::DocObject * > toObjectVector (bool *ok=0) const
 
Geom::Pnt toPoint (bool *ok=0) const
 
Geom::Pnt2d toPoint2d (bool *ok=0) const
 
Geom::Vec toVector (bool *ok=0) const
 
Geom::Dir toDirection (bool *ok=0) const
 
Geom::Trsf toTransform (bool *ok=0) const
 
Geom::GTrsf toGTransform (bool *ok=0) const
 
std::list< Geom::VectoVectorList (bool *ok=0) const
 
std::vector< Geom::PnttoPointList (bool *ok=0) const
 
std::vector< Geom::Pnt2dtoPoint2dList (bool *ok=0) const
 
MD5 toMD5 (bool *ok=0) const
 
pBrepData toBrepData (bool *ok=0) const
 
std::vector< pBrepDatatoBrepDataSet (bool *ok=0) const
 
std::vector< int > toIntegerList (bool *ok=0) const
 
std::vector< uint8_t > toUInt8List (bool *ok=0) const
 
std::vector< double > toRealList (bool *ok=0) const
 
std::list< std::list< Geom::Pnt > > toListPointList (bool *ok=0) const
 
Geom::CompoundPlaneAngle toCompoundPlaneAngle (bool *ok=0) const
 
std::vector< Core::VarianttoVariantList (bool *ok=0) const
 
const std::shared_ptr< Core::ImportMessageDataTypetoImportMessageDataType (bool *ok=0) const
 
std::shared_ptr< LxIfcBase::LxIfcEntity > toIfcEntity (bool *ok=0) const
 
std::list< Core::DocObject * > toLinkList (bool *ok=nullptr) const
 
std::vector< Geom::Geometry * > toGeomGeometryList (bool *ok=nullptr) const
 
Base::String getAsString (bool humanReadable=true, int *version=0) const
 
std::string getTypeAsString () const
 Returns variant type as string. More...
 
bool hasValue () const
 
 Variant (const QFont &font)
 
 Variant (const QDateTime &dateTime)
 
 Variant (const std::list< QDateTime > &dateTime)
 
 Variant (const std::vector< std::vector< SearchValue >> &searchSettings)
 
 Variant (const std::vector< std::vector< std::vector< SearchValue >>> &searchSettingsVector)
 
QFont toFont (bool *ok=0) const
 
QDateTime toDateTime (bool *ok=0) const
 
std::list< QDateTime > toDateTimeList (bool *ok=0) const
 
std::vector< std::vector< SearchValue > > toSearchSettings (bool *ok=0) const
 
std::vector< std::vector< std::vector< SearchValue > > > toSearchSettingsVector (bool *ok=0) const
 
Base::GlobalId toGUID (bool *ok=0) const
 
template<typename T >
getValue (bool *ok) const
 
template<>
int getValue (bool *ok) const
 
template<>
uint32_t getValue (bool *ok) const
 
template<>
long getValue (bool *ok) const
 
template<>
std::string getValue (bool *ok) const
 
template<>
double getValue (bool *ok) const
 
template<>
bool getValue (bool *ok) const
 
template<>
Base::Color getValue (bool *ok) const
 
template<>
Draw::OglMaterial getValue (bool *ok) const
 
template<>
Draw::Texture2 getValue (bool *ok) const
 
template<>
Draw::Texture2Transform getValue (bool *ok) const
 
template<>
Draw::TextureCoordinateMapping getValue (bool *ok) const
 
template<>
Draw::TextureCoordinateFunction getValue (bool *ok) const
 
template<>
Draw::DrawStyle getValue (bool *ok) const
 
template<>
Draw::Arrowheads getValue (bool *ok) const
 
template<>
std::list< std::string > getValue (bool *ok) const
 
template<>
std::list< Base::StringgetValue (bool *ok) const
 
template<>
std::map< int, Draw::OglMaterial > getValue (bool *ok) const
 
template<>
std::map< int, Draw::Texture2 > getValue (bool *ok) const
 
template<>
Geom::Ax1 getValue (bool *ok) const
 
template<>
Geom::Ax2 getValue (bool *ok) const
 
template<>
Geom::Ax2d getValue (bool *ok) const
 
template<>
Geom::Ax22d getValue (bool *ok) const
 
template<>
Core::DocObjectgetValue (bool *ok) const
 
template<>
std::unordered_set< Core::DocObject * > getValue (bool *ok) const
 
template<>
std::vector< Core::DocObject * > getValue (bool *ok) const
 
template<>
Geom::Pnt getValue (bool *ok) const
 
template<>
Geom::Pnt2d getValue (bool *ok) const
 
template<>
Geom::Vec getValue (bool *ok) const
 
template<>
Geom::Dir getValue (bool *ok) const
 
template<>
Geom::Trsf getValue (bool *ok) const
 
template<>
Geom::GTrsf getValue (bool *ok) const
 
template<>
std::list< Geom::VecgetValue (bool *ok) const
 
template<>
std::vector< Geom::PntgetValue (bool *ok) const
 
template<>
std::vector< Geom::Pnt2dgetValue (bool *ok) const
 
template<>
MD5 getValue (bool *ok) const
 
template<>
pBrepData getValue (bool *ok) const
 
template<>
std::vector< pBrepDatagetValue (bool *ok) const
 
template<>
std::vector< int > getValue (bool *ok) const
 
template<>
Base::GlobalId getValue (bool *ok) const
 
template<>
std::shared_ptr< LxIfcBase::LxIfcEntity > getValue (bool *ok) const
 
template<>
std::list< Core::DocObject * > getValue (bool *ok) const
 
template<>
std::vector< Geom::Geometry * > getValue (bool *ok) const
 

Public Attributes

int type
 The variant type. More...
 
boost::any data
 The data. More...
 

Friends

class VariantHandler
 
class Sketcher::Constraint
 
class Topo::Shape
 
LX_CORE_EXPORT std::ostream & operator<< (std::ostream &o, const Core::Variant &variant)
 

Member Enumeration Documentation

◆ Type

Enumerator
Undefined 
UInt8 
UInt8List 
UInt32 
UInt64 
Integer 
IntegerList 
Long 
Double 
StdString 
String 
Bool 
StdStringList 
StringList 
MaterialList 
Texture2List 
Color 
MColor 
ColorList 
MColorList 
Texture2 
Texture2Transform 
TextureCoordinateMapping 
TextureCoordinateFunction 
DrawStyle 
Arrowheads 
Material 
Object 
ObjectSet 
ObjectVector 
Font 
DateTime 
DateTimeList 
SearchSettings 
SearchSettingsVector 
Axis1 
Axis2 
Axis2d 
Axis22d 
Placement 
Point 
Point2d 
Vector 
Direction 
Transform 
GTransform 
VectorList 
PointList 
Point2dList 
Md5 
BrepData 
BrepDataSet 
Shape 
ConstShape 
RealList 
L2D_Placement 
ListPointList 
CompoundPlaneAngle 
VariantList 
GUID 
ImportData 
IfcEntity 
LinkList 
SketcherConstraintList 
GeomGeometryList 
CoreDocument 
User 

Constructor & Destructor Documentation

◆ Variant() [1/64]

Core::Variant::Variant ( )

◆ Variant() [2/64]

Core::Variant::Variant ( const Variant in)

◆ Variant() [3/64]

Core::Variant::Variant ( int  i)
explicit

◆ Variant() [4/64]

Core::Variant::Variant ( long  i)
explicit

◆ Variant() [5/64]

Core::Variant::Variant ( uint8_t  i)
explicit

◆ Variant() [6/64]

Core::Variant::Variant ( uint32_t  i)
explicit

◆ Variant() [7/64]

Core::Variant::Variant ( uint64_t  i)
explicit

◆ Variant() [8/64]

Core::Variant::Variant ( double  d)
explicit

◆ Variant() [9/64]

Core::Variant::Variant ( const wchar_t *  s)
explicit

◆ Variant() [10/64]

Core::Variant::Variant ( const Base::String s)
explicit

◆ Variant() [11/64]

Core::Variant::Variant ( bool  b)
explicit

◆ Variant() [12/64]

Core::Variant::Variant ( const Base::Color c)
explicit

◆ Variant() [13/64]

Core::Variant::Variant ( const Base::MColor c)
explicit

◆ Variant() [14/64]

Core::Variant::Variant ( const std::vector< Base::Color > &  cl)
explicit

◆ Variant() [15/64]

Core::Variant::Variant ( const std::vector< Base::MColor > &  cl)
explicit

◆ Variant() [16/64]

Core::Variant::Variant ( const Draw::OglMaterial &  m)
explicit

◆ Variant() [17/64]

Core::Variant::Variant ( const Draw::Texture2 &  t)
explicit

◆ Variant() [18/64]

Core::Variant::Variant ( const Draw::Texture2Transform &  ttf)
explicit

◆ Variant() [19/64]

Core::Variant::Variant ( const Draw::TextureCoordinateMapping &  tcm)
explicit

◆ Variant() [20/64]

Core::Variant::Variant ( const Draw::TextureCoordinateFunction &  tcf)
explicit

◆ Variant() [21/64]

Core::Variant::Variant ( const Draw::DrawStyle &  ds)
explicit

◆ Variant() [22/64]

Core::Variant::Variant ( const Draw::Arrowheads &  ah)
explicit

◆ Variant() [23/64]

Core::Variant::Variant ( const std::list< std::string > &  sl)
explicit

◆ Variant() [24/64]

Core::Variant::Variant ( const std::list< Base::String > &  sl)
explicit

◆ Variant() [25/64]

Core::Variant::Variant ( const std::map< int, Draw::OglMaterial > &  ml)
explicit

◆ Variant() [26/64]

Core::Variant::Variant ( const std::map< int, Draw::Texture2 > &  tl)
explicit

◆ Variant() [27/64]

Core::Variant::Variant ( const Geom::Ax1 ax1)
explicit

◆ Variant() [28/64]

Core::Variant::Variant ( const Geom::Ax2 ax2)
explicit

◆ Variant() [29/64]

Core::Variant::Variant ( const Geom::Ax2d ax2d)
explicit

◆ Variant() [30/64]

Core::Variant::Variant ( const Geom::Ax22d ax22d)
explicit

◆ Variant() [31/64]

Core::Variant::Variant ( Core::DocObject o)
explicit

◆ Variant() [32/64]

Core::Variant::Variant ( const std::unordered_set< Core::DocObject * > &  oset)
explicit

◆ Variant() [33/64]

Core::Variant::Variant ( const std::vector< Core::DocObject * > &  objects)
explicit

◆ Variant() [34/64]

Core::Variant::Variant ( const Geom::Pnt p)
explicit

◆ Variant() [35/64]

Core::Variant::Variant ( const Geom::Pnt2d p)
explicit

◆ Variant() [36/64]

Core::Variant::Variant ( const Geom::Vec v)
explicit

◆ Variant() [37/64]

Core::Variant::Variant ( const Geom::Dir dir)
explicit

◆ Variant() [38/64]

Core::Variant::Variant ( const Geom::Trsf t)
explicit

◆ Variant() [39/64]

Core::Variant::Variant ( const Geom::GTrsf t)
explicit

◆ Variant() [40/64]

Core::Variant::Variant ( const std::vector< int > &  ilist)
explicit

◆ Variant() [41/64]

Core::Variant::Variant ( const std::vector< uint8_t > &  ilist)
explicit

◆ Variant() [42/64]

Core::Variant::Variant ( const std::list< Geom::Vec > &  vlist)
explicit

◆ Variant() [43/64]

Core::Variant::Variant ( const std::vector< Geom::Pnt > &  plist)
explicit

◆ Variant() [44/64]

Core::Variant::Variant ( const std::vector< Geom::Pnt2d > &  plist)
explicit

◆ Variant() [45/64]

Core::Variant::Variant ( const MD5 v)
explicit

◆ Variant() [46/64]

Core::Variant::Variant ( pBrepData  data)
explicit

◆ Variant() [47/64]

Core::Variant::Variant ( const std::vector< pBrepData > &  dataSet)
explicit

◆ Variant() [48/64]

Core::Variant::Variant ( pShape  shape)
explicit

◆ Variant() [49/64]

Core::Variant::Variant ( pConstShape  shape)
explicit

◆ Variant() [50/64]

Core::Variant::Variant ( const std::vector< double > &  value)
explicit

◆ Variant() [51/64]

Core::Variant::Variant ( const std::list< std::list< Geom::Pnt >> &  the_list)
explicit

◆ Variant() [52/64]

Core::Variant::Variant ( const Geom::CompoundPlaneAngle compangle)
explicit

◆ Variant() [53/64]

Core::Variant::Variant ( const std::vector< Core::Variant > &  varList)
explicit

◆ Variant() [54/64]

Core::Variant::Variant ( const Base::GlobalId id)
explicit

◆ Variant() [55/64]

Core::Variant::Variant ( const std::shared_ptr< ImportMessageDataType aData)
explicit

◆ Variant() [56/64]

Core::Variant::Variant ( const std::shared_ptr< LxIfcBase::LxIfcEntity >  aEntity)
explicit

◆ Variant() [57/64]

Core::Variant::Variant ( const std::list< Core::DocObject * > &  list)
explicit

◆ Variant() [58/64]

Core::Variant::Variant ( const std::vector< Geom::Geometry * > &  aValue)
explicit

◆ Variant() [59/64]

Core::Variant::Variant ( Core::CoreDocument value)
explicit

◆ ~Variant()

Core::Variant::~Variant ( void  )

◆ Variant() [60/64]

Core::Variant::Variant ( const QFont &  font)
explicit

◆ Variant() [61/64]

Core::Variant::Variant ( const QDateTime &  dateTime)
explicit

◆ Variant() [62/64]

Core::Variant::Variant ( const std::list< QDateTime > &  dateTime)
explicit

◆ Variant() [63/64]

Core::Variant::Variant ( const std::vector< std::vector< SearchValue >> &  searchSettings)
explicit

◆ Variant() [64/64]

Core::Variant::Variant ( const std::vector< std::vector< std::vector< SearchValue >>> &  searchSettingsVector)
explicit

Member Function Documentation

◆ canConvert()

bool Core::Variant::canConvert ( Variant::Type  t) const

◆ getAsString()

Base::String Core::Variant::getAsString ( bool  humanReadable = true,
int *  version = 0 
) const

Returns a string representation of the variant. If 'humanReadable=true' it returns a long version of the string, if 'false' it returns a short version for storing data. To get back the variants value from a string use the short version ('false')

◆ getType()

Variant::Type Core::Variant::getType ( ) const

◆ getTypeAsString()

std::string Core::Variant::getTypeAsString ( ) const

Returns variant type as string.

◆ getUserType()

virtual int Core::Variant::getUserType ( ) const
inlinevirtual

Must be overwritten for custom types.

◆ getValue() [1/43]

template<typename T >
T Core::Variant::getValue ( bool *  ok) const
inline

◆ getValue() [2/43]

template<>
int Core::Variant::getValue ( bool *  ok) const
inline

◆ getValue() [3/43]

template<>
uint32_t Core::Variant::getValue ( bool *  ok) const
inline

◆ getValue() [4/43]

template<>
long Core::Variant::getValue ( bool *  ok) const
inline

◆ getValue() [5/43]

template<>
std::string Core::Variant::getValue ( bool *  ok) const
inline

◆ getValue() [6/43]

template<>
double Core::Variant::getValue ( bool *  ok) const
inline

◆ getValue() [7/43]

template<>
bool Core::Variant::getValue ( bool *  ok) const
inline

◆ getValue() [8/43]

template<>
Base::Color Core::Variant::getValue ( bool *  ok) const
inline

◆ getValue() [9/43]

template<>
Draw::OglMaterial Core::Variant::getValue ( bool *  ok) const
inline

◆ getValue() [10/43]

template<>
Draw::Texture2 Core::Variant::getValue ( bool *  ok) const
inline

◆ getValue() [11/43]

template<>
Draw::Texture2Transform Core::Variant::getValue ( bool *  ok) const
inline

◆ getValue() [12/43]

template<>
Draw::TextureCoordinateMapping Core::Variant::getValue ( bool *  ok) const
inline

◆ getValue() [13/43]

template<>
Draw::TextureCoordinateFunction Core::Variant::getValue ( bool *  ok) const
inline

◆ getValue() [14/43]

template<>
Draw::DrawStyle Core::Variant::getValue ( bool *  ok) const
inline

◆ getValue() [15/43]

template<>
Draw::Arrowheads Core::Variant::getValue ( bool *  ok) const
inline

◆ getValue() [16/43]

template<>
std::list<std::string> Core::Variant::getValue ( bool *  ok) const
inline

◆ getValue() [17/43]

template<>
std::list<Base::String> Core::Variant::getValue ( bool *  ok) const
inline

◆ getValue() [18/43]

template<>
std::map<int, Draw::OglMaterial> Core::Variant::getValue ( bool *  ok) const
inline

◆ getValue() [19/43]

template<>
std::map<int, Draw::Texture2> Core::Variant::getValue ( bool *  ok) const
inline

◆ getValue() [20/43]

template<>
Geom::Ax1 Core::Variant::getValue ( bool *  ok) const
inline

◆ getValue() [21/43]

template<>
Geom::Ax2 Core::Variant::getValue ( bool *  ok) const
inline

◆ getValue() [22/43]

template<>
Geom::Ax2d Core::Variant::getValue ( bool *  ok) const
inline

◆ getValue() [23/43]

template<>
Geom::Ax22d Core::Variant::getValue ( bool *  ok) const
inline

◆ getValue() [24/43]

template<>
std::unordered_set<Core::DocObject*> Core::Variant::getValue ( bool *  ok) const
inline

◆ getValue() [25/43]

template<>
Core::DocObject* Core::Variant::getValue ( bool *  ok) const
inline

◆ getValue() [26/43]

template<>
std::vector<Core::DocObject*> Core::Variant::getValue ( bool *  ok) const
inline

◆ getValue() [27/43]

template<>
Geom::Pnt Core::Variant::getValue ( bool *  ok) const
inline

◆ getValue() [28/43]

template<>
Geom::Pnt2d Core::Variant::getValue ( bool *  ok) const
inline

◆ getValue() [29/43]

template<>
Geom::Vec Core::Variant::getValue ( bool *  ok) const
inline

◆ getValue() [30/43]

template<>
Geom::Dir Core::Variant::getValue ( bool *  ok) const
inline

◆ getValue() [31/43]

template<>
Geom::Trsf Core::Variant::getValue ( bool *  ok) const
inline

◆ getValue() [32/43]

template<>
Geom::GTrsf Core::Variant::getValue ( bool *  ok) const
inline

◆ getValue() [33/43]

template<>
std::list<Geom::Vec> Core::Variant::getValue ( bool *  ok) const
inline

◆ getValue() [34/43]

template<>
std::vector<Geom::Pnt> Core::Variant::getValue ( bool *  ok) const
inline

◆ getValue() [35/43]

template<>
std::vector<Geom::Pnt2d> Core::Variant::getValue ( bool *  ok) const
inline

◆ getValue() [36/43]

template<>
MD5 Core::Variant::getValue ( bool *  ok) const
inline

◆ getValue() [37/43]

template<>
pBrepData Core::Variant::getValue ( bool *  ok) const
inline

◆ getValue() [38/43]

template<>
std::vector<pBrepData> Core::Variant::getValue ( bool *  ok) const
inline

◆ getValue() [39/43]

template<>
std::vector<int> Core::Variant::getValue ( bool *  ok) const
inline

◆ getValue() [40/43]

template<>
std::shared_ptr<LxIfcBase::LxIfcEntity> Core::Variant::getValue ( bool *  ok) const
inline

◆ getValue() [41/43]

template<>
Base::GlobalId Core::Variant::getValue ( bool *  ok) const
inline

◆ getValue() [42/43]

template<>
std::list<Core::DocObject*> Core::Variant::getValue ( bool *  ok) const
inline

◆ getValue() [43/43]

template<>
std::vector<Geom::Geometry*> Core::Variant::getValue ( bool *  ok) const
inline

◆ hasValue()

bool Core::Variant::hasValue ( ) const

◆ operator!=()

bool Core::Variant::operator!= ( const Variant other) const

◆ operator==()

bool Core::Variant::operator== ( const Variant other) const

◆ toArrowheads()

Draw::Arrowheads Core::Variant::toArrowheads ( bool *  ok = 0) const

◆ toAxis1()

Geom::Ax1 Core::Variant::toAxis1 ( bool *  ok = 0) const

◆ toAxis2()

Geom::Ax2 Core::Variant::toAxis2 ( bool *  ok = 0) const

◆ toAxis22d()

Geom::Ax22d Core::Variant::toAxis22d ( bool *  ok = 0) const

◆ toAxis2d()

Geom::Ax2d Core::Variant::toAxis2d ( bool *  ok = 0) const

◆ toBool()

bool Core::Variant::toBool ( bool *  ok = 0) const

◆ toBrepData()

pBrepData Core::Variant::toBrepData ( bool *  ok = 0) const

◆ toBrepDataSet()

std::vector<pBrepData> Core::Variant::toBrepDataSet ( bool *  ok = 0) const

◆ toColor()

Base::Color Core::Variant::toColor ( bool *  ok = 0) const

◆ toColorList()

std::vector<Base::Color> Core::Variant::toColorList ( bool *  ok = 0) const

◆ toCompoundPlaneAngle()

Geom::CompoundPlaneAngle Core::Variant::toCompoundPlaneAngle ( bool *  ok = 0) const

◆ toCoreDocument()

Core::CoreDocument* Core::Variant::toCoreDocument ( bool *  ok = 0) const

◆ toDateTime()

QDateTime Core::Variant::toDateTime ( bool *  ok = 0) const

◆ toDateTimeList()

std::list<QDateTime> Core::Variant::toDateTimeList ( bool *  ok = 0) const

◆ toDirection()

Geom::Dir Core::Variant::toDirection ( bool *  ok = 0) const

◆ toDouble()

double Core::Variant::toDouble ( bool *  ok = 0) const

◆ toDrawStyle()

Draw::DrawStyle Core::Variant::toDrawStyle ( bool *  ok = 0) const

◆ toFont()

QFont Core::Variant::toFont ( bool *  ok = 0) const

◆ toGeomGeometryList()

std::vector<Geom::Geometry*> Core::Variant::toGeomGeometryList ( bool *  ok = nullptr) const

◆ toGTransform()

Geom::GTrsf Core::Variant::toGTransform ( bool *  ok = 0) const

◆ toGUID()

Base::GlobalId Core::Variant::toGUID ( bool *  ok = 0) const

◆ toIfcEntity()

std::shared_ptr<LxIfcBase::LxIfcEntity> Core::Variant::toIfcEntity ( bool *  ok = 0) const

◆ toImportMessageDataType()

const std::shared_ptr<Core::ImportMessageDataType> Core::Variant::toImportMessageDataType ( bool *  ok = 0) const

◆ toInteger()

int Core::Variant::toInteger ( bool *  ok = 0) const

◆ toIntegerList()

std::vector<int> Core::Variant::toIntegerList ( bool *  ok = 0) const

◆ toLinkList()

std::list<Core::DocObject*> Core::Variant::toLinkList ( bool *  ok = nullptr) const

◆ toListPointList()

std::list<std::list<Geom::Pnt> > Core::Variant::toListPointList ( bool *  ok = 0) const

◆ toLong()

long Core::Variant::toLong ( bool *  ok = 0) const

◆ toMaterial()

Draw::OglMaterial Core::Variant::toMaterial ( bool *  ok = 0) const

◆ toMaterialList()

std::map<int, Draw::OglMaterial> Core::Variant::toMaterialList ( bool *  ok = 0) const

◆ toMD5()

MD5 Core::Variant::toMD5 ( bool *  ok = 0) const

◆ toObject()

Core::DocObject* Core::Variant::toObject ( bool *  ok = 0) const

◆ toObjectSet()

std::unordered_set<Core::DocObject*> Core::Variant::toObjectSet ( bool *  ok = 0) const

◆ toObjectVector()

std::vector<Core::DocObject*> Core::Variant::toObjectVector ( bool *  ok = 0) const

◆ toPoint()

Geom::Pnt Core::Variant::toPoint ( bool *  ok = 0) const

◆ toPoint2d()

Geom::Pnt2d Core::Variant::toPoint2d ( bool *  ok = 0) const

◆ toPoint2dList()

std::vector<Geom::Pnt2d> Core::Variant::toPoint2dList ( bool *  ok = 0) const

◆ toPointList()

std::vector<Geom::Pnt> Core::Variant::toPointList ( bool *  ok = 0) const

◆ toRealList()

std::vector<double> Core::Variant::toRealList ( bool *  ok = 0) const

◆ toSearchSettings()

std::vector<std::vector<SearchValue> > Core::Variant::toSearchSettings ( bool *  ok = 0) const

◆ toSearchSettingsVector()

std::vector<std::vector<std::vector<SearchValue> > > Core::Variant::toSearchSettingsVector ( bool *  ok = 0) const

◆ toStdString()

std::string Core::Variant::toStdString ( bool *  ok = 0) const

◆ toStdStringList()

std::list<std::string> Core::Variant::toStdStringList ( bool *  ok = 0) const

◆ toString()

Base::String Core::Variant::toString ( bool *  ok = 0) const

◆ toStringList()

std::list<Base::String> Core::Variant::toStringList ( bool *  ok = 0) const

◆ toTexture2()

Draw::Texture2 Core::Variant::toTexture2 ( bool *  ok = 0) const

◆ toTexture2List()

std::map<int, Draw::Texture2> Core::Variant::toTexture2List ( bool *  ok = 0) const

◆ toTexture2Transform()

Draw::Texture2Transform Core::Variant::toTexture2Transform ( bool *  ok = 0) const

◆ toTextureCoordinateFunction()

Draw::TextureCoordinateFunction Core::Variant::toTextureCoordinateFunction ( bool *  ok = 0) const

◆ toTextureCoordinateMapping()

Draw::TextureCoordinateMapping Core::Variant::toTextureCoordinateMapping ( bool *  ok = 0) const

◆ toTransform()

Geom::Trsf Core::Variant::toTransform ( bool *  ok = 0) const

◆ toUInt32()

uint32_t Core::Variant::toUInt32 ( bool *  ok = 0) const

◆ toUInt64()

uint64_t Core::Variant::toUInt64 ( bool *  ok = 0) const

◆ toUInt8()

uint8_t Core::Variant::toUInt8 ( bool *  ok = 0) const

◆ toUInt8List()

std::vector<uint8_t> Core::Variant::toUInt8List ( bool *  ok = 0) const

◆ toVariantList()

std::vector<Core::Variant> Core::Variant::toVariantList ( bool *  ok = 0) const

◆ toVector()

Geom::Vec Core::Variant::toVector ( bool *  ok = 0) const

◆ toVectorList()

std::list<Geom::Vec> Core::Variant::toVectorList ( bool *  ok = 0) const

Friends And Related Function Documentation

◆ operator<<

LX_CORE_EXPORT std::ostream& operator<< ( std::ostream &  o,
const Core::Variant variant 
)
friend

◆ Sketcher::Constraint

friend class Sketcher::Constraint
friend

◆ Topo::Shape

friend class Topo::Shape
friend

◆ VariantHandler

friend class VariantHandler
friend

Member Data Documentation

◆ data

boost::any Core::Variant::data

The data.

◆ type

int Core::Variant::type

The variant type.


The documentation for this class was generated from the following file: