51 #include "TypePlane.hh"
56 TypePlanePlugin::TypePlanePlugin() {
60 bool TypePlanePlugin::registerType() {
84 QString
name = QString(tr(
"New Plane %1.pla").arg( object->
id() ));
88 object->setName( f.fileName() );
91 const QColor color = OpenFlipper::Options::defaultColor();
92 const ACG::Vec4f default_color(color.redF(), color.greenF(), color.blueF(), color.alphaF());
93 object->materialNode()->set_color(default_color);
99 emit emptyObjectAdded (object->
id() );
104 #if QT_VERSION < 0x050000
DLLEXPORT OpenFlipperQSettings & OpenFlipperSettings()
QSettings object containing all program settings of OpenFlipper.
DLLEXPORT void setTypeIcon(DataType _id, QString _icon)
Set an Icon for a given DataType.
int targetCount()
Get the number of target objects.
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 addEmpty()
Create an empty object.
int objectCount()
Get the number of available objects.