WSF
WsfScriptZoneClass.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 2003-2015 The Boeing 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 WSFSCRIPTZONECLASS_HPP
13#define WSFSCRIPTZONECLASS_HPP
14
15#include "wsf_export.h"
16
19
22{
23public:
24 WsfScriptZoneClass(const std::string& aClassName, UtScriptTypes* aScriptTypesPtr);
25
26 void* Create(const UtScriptContext& aInstance) override;
27 void* Clone(void* aObjectPtr) override;
28 void Destroy(void* aObjectPtr) override;
29
30 // Simulation management methods
31 UT_DECLARE_SCRIPT_METHOD(Draw); // draw the zone using WsfDraw
32 UT_DECLARE_SCRIPT_METHOD(DrawRelative); // draw the zone relative to a given location, using WsfDraw
33 UT_DECLARE_SCRIPT_METHOD(DrawCentroid); // draw the centroid using WsfDraw
34 UT_DECLARE_SCRIPT_METHOD(DrawBounds); // draw the bounding box using WsfDraw
35
36 UT_DECLARE_SCRIPT_METHOD(DebugDrawZone); // draw the zone using WsfDraw
37 UT_DECLARE_SCRIPT_METHOD(DebugDrawZoneRelative); // draw the zone relative to a given location, using WsfDraw
38 UT_DECLARE_SCRIPT_METHOD(DebugDrawCentroid); // draw the centroid using WsfDraw
39 UT_DECLARE_SCRIPT_METHOD(DebugDrawBounds); // draw the bounding box using WsfDraw
40
41 UT_DECLARE_SCRIPT_METHOD(MaxPoint); // Get the max point of the bounding box
42 UT_DECLARE_SCRIPT_METHOD(MinPoint); // Get the min point of the bounding box
43 UT_DECLARE_SCRIPT_METHOD(ModifierValue); // Get the value of a modifier
44 UT_DECLARE_SCRIPT_METHOD(Position_1); // Get the position of the zone (centroid)
45 UT_DECLARE_SCRIPT_METHOD(Reference); // Get the reference point of the zone (usually the first vertex)
46 UT_DECLARE_SCRIPT_METHOD(PenetrationDistance); // Get the penetration distance for a line segment
47 UT_DECLARE_SCRIPT_METHOD(PointIsInside); // Test if the given point is inside the zone
48 UT_DECLARE_SCRIPT_METHOD(PointIsInside_2); // Test if the given point is inside the zone (relative to platform)
49 UT_DECLARE_SCRIPT_METHOD(PointIsInside_3); // Test if the given point is inside the zone (global zone made of geo points)
50
52
53 UT_DECLARE_SCRIPT_METHOD(CreateCircular); // Create an instance of a circular zone
54 UT_DECLARE_SCRIPT_METHOD(CreateElliptical); // Create an instance of an elliptical zone
55 UT_DECLARE_SCRIPT_METHOD(CreateSpherical); // Create an instance of a spherical zone
56 UT_DECLARE_SCRIPT_METHOD(CreatePolygonalAbsolute); // Create an instance of a polygonal zone, with absolute coordinates
57 UT_DECLARE_SCRIPT_METHOD(CreatePolygonalRelative); // Create an instance of a polygonal zone, with relative coordinates
59 UT_DECLARE_SCRIPT_METHOD(SetPolyPoints); // Set the points of the zone, makes it a polygonal zone
61
62 // Zone color methods
67};
68
69#endif
#define UT_DECLARE_AUX_DATA_SCRIPT_METHODS()
Definition WsfScriptAuxDataUtil.hpp:194
#define WSF_EXPORT
Definition WsfXIO_Export.hpp:35
void * Create(const UtScriptContext &aInstance) override
Definition WsfScriptObjectClass.cpp:44
void Destroy(void *aObjectPtr) override
Definition WsfScriptObjectClass.cpp:56
void * Clone(void *aObjectPtr) override
Definition WsfScriptObjectClass.cpp:50
WsfScriptObjectClass(const std::string &aClassName, UtScriptTypes *aTypesPtr)
Definition WsfScriptObjectClass.cpp:24
WsfScriptZoneClass(const std::string &aClassName, UtScriptTypes *aScriptTypesPtr)
Definition WsfScriptZoneClass.cpp:31
UT_DECLARE_SCRIPT_METHOD(DebugDrawBounds)
UT_DECLARE_SCRIPT_METHOD(PointIsInside_2)
UT_DECLARE_SCRIPT_METHOD(ModifierValue)
UT_DECLARE_SCRIPT_METHOD(Position_1)
UT_DECLARE_SCRIPT_METHOD(DebugDrawCentroid)
UT_DECLARE_SCRIPT_METHOD(PointIsInside)
UT_DECLARE_SCRIPT_METHOD(Draw)
UT_DECLARE_SCRIPT_METHOD(DrawBounds)
UT_DECLARE_SCRIPT_METHOD(DebugDrawZoneRelative)
UT_DECLARE_SCRIPT_METHOD(DrawCentroid)
UT_DECLARE_SCRIPT_METHOD(PointIsInside_3)
UT_DECLARE_SCRIPT_METHOD(Reference)
UT_DECLARE_SCRIPT_METHOD(DebugDrawZone)
UT_DECLARE_SCRIPT_METHOD(MinPoint)
UT_DECLARE_SCRIPT_METHOD(MaxPoint)
UT_DECLARE_SCRIPT_METHOD(DrawRelative)
UT_DECLARE_SCRIPT_METHOD(PenetrationDistance)
Copyrights Multiple, All Rights Reserved