45 #include "TypePlane.hh" 50 TypePlanePlugin::TypePlanePlugin() {
54 bool TypePlanePlugin::registerType() {
78 QString
name = QString(tr(
"New Plane %1.pla").arg( object->
id() ));
82 object->setName( f.fileName() );
85 const QColor color = OpenFlipper::Options::defaultColor();
86 const ACG::Vec4f default_color(color.redF(), color.greenF(), color.blueF(), color.alphaF());
87 object->materialNode()->set_color(default_color);
93 emit emptyObjectAdded (object->
id() );
DLLEXPORT OpenFlipperQSettings & OpenFlipperSettings()
QSettings object containing all program settings of OpenFlipper.
QString name()
Return a name for the plugin.
DLLEXPORT void setTypeIcon(DataType _id, QString _icon)
Set an Icon for a given DataType.
DLLEXPORT DataType addDataType(QString _name, QString _readableName)
Adds a datatype and returns the id for the new type.
int addEmpty()
Create an empty object.
int objectCount()
Get the number of available objects.
int targetCount()
Get the number of target objects.