Common functionality for Editor Component Shapes. More...
#include <EditorBaseShapeComponent.h>
Inherits AzToolsFramework::Components::EditorComponentBase, EditorShapeComponentRequestsBus::Handler, AzToolsFramework::EditorComponentSelectionRequestsBus::Handler, AzToolsFramework::EditorComponentSelectionNotificationsBus::Handler, AZ::TransformNotificationBus::Handler, AzFramework::BoundsRequestBus::Handler, and ShapeComponentNotificationsBus::Handler.
Inherited by LmbrCentral::EditorAxisAlignedBoxShapeComponent, LmbrCentral::EditorBoxShapeComponent, LmbrCentral::EditorCapsuleShapeComponent, LmbrCentral::EditorCompoundShapeComponent, LmbrCentral::EditorCylinderShapeComponent, LmbrCentral::EditorDiskShapeComponent, LmbrCentral::EditorPolygonPrismShapeComponent, LmbrCentral::EditorQuadShapeComponent, LmbrCentral::EditorSphereShapeComponent, and LmbrCentral::EditorTubeShapeComponent.
Public Member Functions | |
AZ_RTTI (EditorBaseShapeComponent, "{32B9D7E9-6743-427B-BAFD-1C42CFBE4879}", AzToolsFramework::Components::EditorComponentBase) | |
void | Activate () override |
void | Deactivate () override |
void | OnTransformChanged (const AZ::Transform &, const AZ::Transform &) override |
void | SetShapeColor (const AZ::Color &solidColor) override |
void | SetShapeWireframeColor (const AZ::Color &wireColor) override |
void | SetVisibleInEditor (bool visible) override |
void | SetVisibleInGame (bool visible) override |
void | SetShapeColorIsEditable (bool editable) override |
bool | GetShapeColorIsEditable () override |
AZ::Aabb | GetWorldBounds () override |
AZ::Aabb | GetLocalBounds () override |
void | OnShapeChanged (ShapeChangeReasons changeReason) override |
bool | CanDraw () const |
Should shape be rendered all the time, even when not selected. | |
void | SetShapeComponentConfig (ShapeComponentConfig *shapeConfig) |
Static Public Member Functions | |
static void | Reflect (AZ::SerializeContext &context) |
Protected Attributes | |
AZ::Color | m_shapeColor = AzFramework::ViewportColors::DeselectedColor |
AZ::Color | m_shapeWireColor = AzFramework::ViewportColors::WireColor |
AZ::Color | m_shapeColorSaved = AzFramework::ViewportColors::DeselectedColor |
bool | m_shapeColorIsEditable = true |
bool | m_visibleInEditor = true |
bool | m_visibleInGameView = false |
bool | m_displayFilled = true |
ShapeComponentConfig * | m_shapeConfig = nullptr |
Common functionality for Editor Component Shapes.