1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
#pragma once
#include "iorthoview.h"
#include "icommandsystem.h"
#include "math/AABB.h"
#include "patch/Patch.h"
#include "patch/PatchConstants.h"
namespace patch
{
namespace algorithm
{
/**
* Construct a patch prefab of the given type, size and AABB.
* This method will de-select all items in the scene, and the newly created
* item will be selected.
*/
void constructPrefab(const AABB& aabb, const std::string& shader, EPatchPrefab eType,
OrthoOrientation viewType, std::size_t width = 3, std::size_t height = 3);
// General-purpose command target, taking one string argument to specify the prefab type
void createPrefab(const cmd::ArgumentList& args);
// Various command targets to create patch prefabs
void createCylinder(const cmd::ArgumentList& args);
void createDenseCylinder(const cmd::ArgumentList& args);
void createVeryDenseCylinder(const cmd::ArgumentList& args);
void createSquareCylinder(const cmd::ArgumentList& args);
void createSphere(const cmd::ArgumentList& args);
void createEndcap(const cmd::ArgumentList& args);
void createBevel(const cmd::ArgumentList& args);
void createCone(const cmd::ArgumentList& args);
// Creates a simple patch mesh, firing the dialog if necessary
void createSimplePatch(const cmd::ArgumentList& args);
// Constructs the given cap type for the patch, creating new patches, and inserting them to the given parent
// The parent node must not be NULL.
void createCaps(const IPatch& patch, const scene::INodePtr& parent, CapType type, const std::string& shader);
} // namespace
} // namespace
|