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() );
int objectCount()
Get the number of available 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 targetCount()
Get the number of target objects.
DLLEXPORT OpenFlipperQSettings & OpenFlipperSettings()
QSettings object containing all program settings of OpenFlipper.