WSF
AttachmentZoneEllipse.hpp
Go to the documentation of this file.
1// ****************************************************************************
2// CUI
3//
4// The Advanced Framework for Simulation, Integration, and Modeling (AFSIM)
5//
6// Copyright 2020 Infoscitex, a DCS Company. All rights reserved.
7//
8// The use, dissemination or disclosure of data in this file is subject to
9// limitation or restriction. See accompanying README and LICENSE for details.
10// ****************************************************************************
11
12#ifndef ATTACHMENTZONEELLIPSE_HPP
13#define ATTACHMENTZONEELLIPSE_HPP
14
15#include "ViExport.hpp"
16#include "zone/WkfAttachmentZoneEllipse.hpp"
17
18namespace vespa
19{
20class VaEntity;
21class VaViewer;
22} // namespace vespa
23
24namespace wizard
25{
26class VI_EXPORT AttachmentZoneEllipse : public wkf::AttachmentZoneEllipse
27{
28public:
29 AttachmentZoneEllipse(vespa::VaEntity& aParent, vespa::VaViewer* aViewerPtr);
30
32
33 unsigned int GetPickMode() const override { return cPICK_ATTACHMENT; }
34 bool IsHighlightable() override { return true; }
35
36 bool Highlight(vespa::VaViewer* aViewerPtr,
37 const vespa::VaAttachmentSubId& aSubpartId,
38 bool aHighlight,
39 const UtColor& aColor) override
40 {
41 return false;
42 }
43
44 void SetRelative(bool aRelative) { mRelative = aRelative; }
45 bool IsRelative() const { return mRelative; }
46
47 bool Pick(vespa::VaViewer* aViewerPtr,
48 int aMouseX,
49 int aMouseY,
50 bool aToggle,
51 bool aDoubleClick,
52 const vespa::VaAttachmentSubId& aAttachmentSubPartId) override;
53 void MoveRelative(UtEntity& aRefBefore,
54 UtEntity& aRefAfter,
55 int aFeedbackFormat,
56 double aFeedbackPrecision,
57 vespa::MoveRelativeMask aMoveRelativeMask,
58 vespa::VaViewer* aViewerPtr) override;
59
60 std::string GetMenuSelectionString(const vespa::VaAttachmentSubId& aSubId) const override;
61
62private:
63 bool mRelative = false;
64};
65} // namespace wizard
66
67#endif
#define VI_EXPORT
Definition ViExport.hpp:38
void SetRelative(bool aRelative)
Definition AttachmentZoneEllipse.hpp:44
unsigned int GetPickMode() const override
Definition AttachmentZoneEllipse.hpp:33
bool Highlight(vespa::VaViewer *aViewerPtr, const vespa::VaAttachmentSubId &aSubpartId, bool aHighlight, const UtColor &aColor) override
Definition AttachmentZoneEllipse.hpp:36
AttachmentZoneEllipse(vespa::VaEntity &aParent, vespa::VaViewer *aViewerPtr)
Definition AttachmentZoneEllipse.cpp:18
bool IsHighlightable() override
Definition AttachmentZoneEllipse.hpp:34
bool IsRelative() const
Definition AttachmentZoneEllipse.hpp:45
Definition EditorHelpers.hpp:37
Definition Runner.hpp:22
Copyrights Multiple, All Rights Reserved