51 #include "TypeSphere.hh"
57 TypeSpherePlugin::TypeSpherePlugin() {
61 bool TypeSpherePlugin::registerType() {
86 QString
name = QString(tr(
"New Sphere %1.sph").arg( object->
id() ));
90 object->setName( f.fileName() );
93 const QColor color = OpenFlipper::Options::defaultColor();
94 const ACG::Vec4f default_color(color.redF(), color.greenF(), color.blueF(), color.alphaF());
95 object->materialNode()->set_color(default_color);
101 emit emptyObjectAdded (object->
id() );
106 #if QT_VERSION < 0x050000
DLLEXPORT OpenFlipperQSettings & OpenFlipperSettings()
QSettings object containing all program settings of OpenFlipper.
int targetCount()
Get the number of target objects.
int addEmpty()
Create an empty object.
DLLEXPORT DataType addDataType(QString _name, QString _readableName)
Adds a datatype and returns the id for the new type.
QString name()
Return a name for the plugin.
int objectCount()
Get the number of available objects.