WSF
AttachmentZoneSphere.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 2021 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 ATTACHMENTZONESPHERE_HPP
13#define ATTACHMENTZONESPHERE_HPP
14
15#include "ViExport.hpp"
16#include "zone/WkfAttachmentZoneSphere.hpp"
17
18namespace vespa
19{
20class VaEntity;
21class VaViewer;
22} // namespace vespa
23
24namespace wizard
25{
26class VI_EXPORT AttachmentZoneSphere : public wkf::AttachmentZoneSphere
27{
28public:
29 AttachmentZoneSphere(vespa::VaEntity& aParent, vespa::VaViewer* aViewerPtr);
30
32
33 unsigned int GetPickMode() const override { return cPICK_ATTACHMENT; }
34
35 void SetRelative(bool aRelative) { mRelative = aRelative; }
36 bool IsRelative() const { return mRelative; }
37
38 bool Pick(vespa::VaViewer* aViewerPtr,
39 int aMouseX,
40 int aMouseY,
41 bool aToggle,
42 bool aDoubleClick,
43 const vespa::VaAttachmentSubId& aAttachmentSubPartId) override;
44 void MoveRelative(UtEntity& aRefBefore,
45 UtEntity& aRefAfter,
46 int aFeedbackFormat,
47 double aFeedbackPrecision,
48 vespa::MoveRelativeMask aMoveRelativeMask,
49 vespa::VaViewer* aViewerPtr) override;
50
51 std::string GetMenuSelectionString(const vespa::VaAttachmentSubId& aSubId) const override;
52
53private:
54 bool mRelative = false;
55};
56} // namespace wizard
57
58#endif
#define VI_EXPORT
Definition ViExport.hpp:38
void SetRelative(bool aRelative)
Definition AttachmentZoneSphere.hpp:35
unsigned int GetPickMode() const override
Definition AttachmentZoneSphere.hpp:33
AttachmentZoneSphere(vespa::VaEntity &aParent, vespa::VaViewer *aViewerPtr)
Definition AttachmentZoneSphere.cpp:17
bool IsRelative() const
Definition AttachmentZoneSphere.hpp:36
Definition EditorHelpers.hpp:37
Definition Runner.hpp:22
Copyrights Multiple, All Rights Reserved