#include <VP1SoMaterialMixer.h>
|
| VP1SoMaterialMixer (IVP1System *sys=0) |
|
virtual | ~VP1SoMaterialMixer () |
|
SoMaterial * | getMixedMaterial (const std::set< SoMaterial * > &) |
|
SoMaterial * | getMixedMaterial (const std::map< SoMaterial *, double > &) |
|
SoMaterial * | getMixedMaterial (SoMaterial *mat1, SoMaterial *mat2) |
|
SoMaterial * | getMixedMaterial (SoMaterial *mat1, const double &weight1, SoMaterial *mat2, const double &weight2) |
|
void | setSystemBasePointer (IVP1System *sys) |
|
void | message (const QString &) const |
|
void | message (const QStringList &, const QString &addtoend="") const |
|
void | message (const QString &addtostart, const QStringList &, const QString &addtoend="") const |
|
void | messageDebug (const QString &) const |
|
void | messageDebug (const QStringList &, const QString &addtoend="") const |
|
void | messageDebug (const QString &addtostart, const QStringList &, const QString &addtoend="") const |
|
void | messageVerbose (const QString &) const |
|
void | messageVerbose (const QStringList &, const QString &addtoend="") const |
|
void | messageVerbose (const QString &addtostart, const QStringList &, const QString &addtoend="") const |
|
IVP1System * | systemBase () const |
|
QString | helperClassName () const |
|
Definition at line 19 of file VP1SoMaterialMixer.h.
◆ VP1SoMaterialMixer()
VP1SoMaterialMixer::VP1SoMaterialMixer |
( |
IVP1System * |
sys = 0 | ) |
|
◆ ~VP1SoMaterialMixer()
VP1SoMaterialMixer::~VP1SoMaterialMixer |
( |
| ) |
|
|
virtual |
Definition at line 66 of file VP1SoMaterialMixer.cxx.
72 for (it2=
it->first.begin(), it2E=
it->first.end();it2!=it2E;++it2)
79 std::map<SoMaterial*,double>::const_iterator it2,it2E;
81 for (it2=
it->first.begin(),it2E=
it->first.end();it2!=it2E;++it2)
106 +
") different material combinations. Try to use fewer combinations for better performance!");
111 ") different materials. Try to lower this number for better performance!");
◆ getMixedMaterial() [1/4]
SoMaterial * VP1SoMaterialMixer::getMixedMaterial |
( |
const std::map< SoMaterial *, double > & |
matlist | ) |
|
Definition at line 318 of file VP1SoMaterialMixer.cxx.
322 std::map<SoMaterial*,double>::const_iterator
it(matlist.begin()),
itE(matlist.end());
329 if (matlist.empty()) {
339 if (matlist.size()==1)
340 return matlist.begin()->first;
348 SoMaterial * mixmat =
new SoMaterial;
352 std::map<SoMaterial*,double>::const_iterator it3(matlist.begin()), it3E(matlist.end());
353 for (;it3!=it3E;++it3) {
◆ getMixedMaterial() [2/4]
SoMaterial * VP1SoMaterialMixer::getMixedMaterial |
( |
const std::set< SoMaterial * > & |
matlist | ) |
|
Definition at line 273 of file VP1SoMaterialMixer.cxx.
276 std::set<SoMaterial*>::const_iterator
it(matlist.begin()),
itE(matlist.end());
283 if (matlist.empty()) {
293 if (matlist.size()==1)
294 return *(matlist.begin());
297 std::map<std::set<SoMaterial*>,SoMaterial*>::const_iterator it2 =
m_d->
matlists2mixedmats.find(matlist);
302 SoMaterial * mixmat =
new SoMaterial;
306 std::set<SoMaterial*>::const_iterator it3(matlist.begin()), it3E(matlist.end());
307 for (;it3!=it3E;++it3) {
◆ getMixedMaterial() [3/4]
SoMaterial * VP1SoMaterialMixer::getMixedMaterial |
( |
SoMaterial * |
mat1, |
|
|
const double & |
weight1, |
|
|
SoMaterial * |
mat2, |
|
|
const double & |
weight2 |
|
) |
| |
Definition at line 373 of file VP1SoMaterialMixer.cxx.
376 std::map<SoMaterial*,double> matlist;
377 matlist[mat1] = weight1;
378 matlist[mat2] = weight2;
◆ getMixedMaterial() [4/4]
SoMaterial * VP1SoMaterialMixer::getMixedMaterial |
( |
SoMaterial * |
mat1, |
|
|
SoMaterial * |
mat2 |
|
) |
| |
◆ helperClassName()
QString VP1HelperClassBase::helperClassName |
( |
| ) |
const |
|
inlineinherited |
◆ message() [1/3]
void VP1HelperClassBase::message |
( |
const QString & |
str | ) |
const |
|
inherited |
◆ message() [2/3]
void VP1HelperClassBase::message |
( |
const QString & |
addtostart, |
|
|
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
◆ message() [3/3]
void VP1HelperClassBase::message |
( |
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
◆ messageDebug() [1/3]
void VP1HelperClassBase::messageDebug |
( |
const QString & |
str | ) |
const |
|
inherited |
◆ messageDebug() [2/3]
void VP1HelperClassBase::messageDebug |
( |
const QString & |
addtostart, |
|
|
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
◆ messageDebug() [3/3]
void VP1HelperClassBase::messageDebug |
( |
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
◆ messageVerbose() [1/3]
void VP1HelperClassBase::messageVerbose |
( |
const QString & |
str | ) |
const |
|
inherited |
◆ messageVerbose() [2/3]
void VP1HelperClassBase::messageVerbose |
( |
const QString & |
addtostart, |
|
|
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
◆ messageVerbose() [3/3]
void VP1HelperClassBase::messageVerbose |
( |
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
◆ setHelperClassName()
void VP1HelperClassBase::setHelperClassName |
( |
const QString & |
n | ) |
|
|
inlineprotectedinherited |
◆ setSystemBasePointer()
void VP1HelperClassBase::setSystemBasePointer |
( |
IVP1System * |
sys | ) |
|
|
inherited |
◆ str() [1/30]
◆ str() [2/30]
static QString VP1String::str |
( |
const bool |
b | ) |
|
|
inlinestaticinherited |
Definition at line 53 of file VP1String.h.
53 {
return b?
"True":
"False"; }
◆ str() [3/30]
static QString VP1String::str |
( |
const char * |
c | ) |
|
|
inlinestaticinherited |
◆ str() [4/30]
static QString VP1String::str |
( |
const double & |
d | ) |
|
|
inlinestaticinherited |
◆ str() [5/30]
static QString VP1String::str |
( |
const float & |
f | ) |
|
|
inlinestaticinherited |
◆ str() [6/30]
◆ str() [7/30]
QString VP1String::str |
( |
const QColor & |
c | ) |
|
|
staticinherited |
Definition at line 30 of file VP1String.cxx.
32 return c.isValid() ?
c.name() :
"Invalid";
◆ str() [8/30]
template<class T >
static QString VP1String::str |
( |
const QFlags< T > & |
f | ) |
|
|
inlinestaticinherited |
◆ str() [9/30]
template<class T >
static QString VP1String::str |
( |
const QList< T > & |
t | ) |
|
|
inlinestaticinherited |
◆ str() [10/30]
static QString VP1String::str |
( |
const QString & |
s | ) |
|
|
inlinestaticinherited |
◆ str() [11/30]
QString VP1String::str |
( |
const SbColor & |
c | ) |
|
|
staticinherited |
◆ str() [12/30]
QString VP1String::str |
( |
const SbVec2d & |
v | ) |
|
|
staticinherited |
◆ str() [13/30]
QString VP1String::str |
( |
const SbVec2f & |
v | ) |
|
|
staticinherited |
◆ str() [14/30]
QString VP1String::str |
( |
const SbVec2s & |
v | ) |
|
|
staticinherited |
◆ str() [15/30]
QString VP1String::str |
( |
const SbVec3d & |
v | ) |
|
|
staticinherited |
◆ str() [16/30]
QString VP1String::str |
( |
const SbVec3f & |
v | ) |
|
|
staticinherited |
◆ str() [17/30]
QString VP1String::str |
( |
const SbVec3s & |
v | ) |
|
|
staticinherited |
◆ str() [18/30]
QString VP1String::str |
( |
const SbVec4d & |
v | ) |
|
|
staticinherited |
◆ str() [19/30]
QString VP1String::str |
( |
const SbVec4f & |
v | ) |
|
|
staticinherited |
◆ str() [20/30]
template<class T >
static QString VP1String::str |
( |
const T * |
t | ) |
|
|
inlinestaticinherited |
Definition at line 87 of file VP1String.h.
87 {
return str(
static_cast<const void*
>(
t)); }
◆ str() [21/30]
QString VP1String::str |
( |
const void * |
p | ) |
|
|
staticinherited |
Definition at line 48 of file VP1String.cxx.
54 return QString (
s.str().c_str());
◆ str() [22/30]
◆ str() [23/30]
static QString VP1String::str |
( |
int |
n | ) |
|
|
inlinestaticinherited |
◆ str() [24/30]
static QString VP1String::str |
( |
long |
n | ) |
|
|
inlinestaticinherited |
◆ str() [25/30]
static QString VP1String::str |
( |
qlonglong |
n | ) |
|
|
inlinestaticinherited |
◆ str() [26/30]
static QString VP1String::str |
( |
qulonglong |
n | ) |
|
|
inlinestaticinherited |
◆ str() [27/30]
static QString VP1String::str |
( |
short int |
n | ) |
|
|
inlinestaticinherited |
◆ str() [28/30]
static QString VP1String::str |
( |
uint |
n | ) |
|
|
inlinestaticinherited |
◆ str() [29/30]
static QString VP1String::str |
( |
ulong |
n | ) |
|
|
inlinestaticinherited |
◆ str() [30/30]
static QString VP1String::str |
( |
unsigned short int |
n | ) |
|
|
inlinestaticinherited |
◆ systemBase()
IVP1System* VP1HelperClassBase::systemBase |
( |
| ) |
const |
|
inlineinherited |
◆ verbose()
static bool VP1HelperClassBase::verbose |
( |
| ) |
|
|
inlinestaticinherited |
◆ warnUndeletedInstances()
void VP1HelperClassBase::warnUndeletedInstances |
( |
| ) |
|
|
staticinherited |
Definition at line 183 of file VP1HelperClassBase.cxx.
185 if (vp1helperclassbase_instanceMap.empty())
187 std::cout <<
"WARNING: Detected "<<vp1helperclassbase_instanceMap.size()<<
" undeleted helper class instances:"<<std::endl;
190 for (
it = vp1helperclassbase_instanceMap.begin();
it!=
itE;++
it) {
191 std::cout <<
" ==> "<<
it->first<<
": "<<
it->first->m_helpername.toStdString()
192 << (
it->second.isEmpty()?QString(
""):
" (in system "+
it->
second+
")").toStdString()<<std::endl;
◆ m_d
Imp* VP1SoMaterialMixer::m_d |
|
private |
◆ m_helpername
QString VP1HelperClassBase::m_helpername |
|
privateinherited |
◆ m_system
◆ s_vp1verbose
The documentation for this class was generated from the following files: