3#include <NDEVR/QTDesignObject.h>
4#include <NDEVR/DesignObjectWidgetInterface.h>
5#include <NDEVR/QCustomSlider.h>
DepthBiasSlider(const DynamicPointer< QTDesignObject > &object, QWidget *parent=nullptr)
Constructs a depth bias slider bound to a design object.
DepthBiasSlider(QWidget *parent=nullptr)
Constructs an unbound depth bias slider.
constexpr decltype(auto) get(t_property_type property) const
Retrieves a property value from the database, cast to the requested type.
bool isValid() const
Checks whether this design object has a valid index into the database.
Provides a modifiable pointer that has shared ownership of a dynamically allocated object.
void removeTarget(const DynamicPointer< QTDesignObject > &object) override
Removes a design object from the editing targets.
void onTargetUpdated(UUID id) override
Called when the target design object is updated, refreshes the slider value.
void addTarget(const DynamicPointer< QTDesignObject > &object) override
Adds a design object as an additional editing target.
void onObjectDeletedSlot()
Slot called when the target object is deleted, clearing the current target.
void refreshFromMaterial(const Material &mat)
Updates the slider value from the given material's property.
MaterialPropertySlider(const DynamicPointer< QTDesignObject > &object, NDPM property, QWidget *parent=nullptr)
Constructs a slider bound to a specific material property of a design object.
void init()
Initializes slider range and connections based on the material property.
NDPM m_property
The material property controlled by this slider.
MaterialPropertySlider(NDPM property, QWidget *parent=nullptr)
Constructs an unbound slider for a specific material property.
Container responsible for storing and setting the appearance of a Model or Geometry within the NDEVR ...
OpacitySlider(QWidget *parent=nullptr)
Constructs an unbound opacity slider.
OpacitySlider(const DynamicPointer< QTDesignObject > &object, QWidget *parent=nullptr)
Constructs an opacity slider bound to a design object.
PixelThicknessSlider(const DynamicPointer< QTDesignObject > &object, QWidget *parent=nullptr)
Constructs a pixel thickness slider bound to a design object.
PixelThicknessSlider(QWidget *parent=nullptr)
Constructs an unbound pixel thickness slider.
void setValue(fltp08 value)
Sets the slider value from a floating-point percent.
QCustomSlider(Qt::Orientation orientation, QWidget *parent=nullptr)
Constructs a slider with the specified orientation.
A universally unique identifier (UUID) is a 128-bit number used to identify information in computer s...
The primary namespace for the NDEVR SDK.
NDPM
NDPM - NDEVR Design Property Material: Values stored in the material database.
@ pixel_thickness
Thickness in pixels for line and point rendering.
@ opacity
The overall opacity of the material (0.0 = fully transparent, 1.0 = fully opaque).
@ depth_bias
Bias applied to depth values to prevent z-fighting.
double fltp08
Defines an alias representing an 8 byte floating-point number.
@ thickness
The thickness value applied to geometry rendering.