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