2025.6.1
This commit is contained in:
40
exchange/exchangesource/MeshViewer/model/he/entity.cpp
Normal file
40
exchange/exchangesource/MeshViewer/model/he/entity.cpp
Normal file
@@ -0,0 +1,40 @@
|
||||
/***********************************************************************************************************************
|
||||
*
|
||||
* Copyright (c) 2010 - 2025 by Tech Soft 3D, Inc.
|
||||
* The information contained herein is confidential and proprietary to Tech Soft 3D, Inc., and considered a trade secret
|
||||
* as defined under civil and criminal statutes. Tech Soft 3D shall pursue its civil and criminal remedies in the event
|
||||
* of unauthorized use or misappropriation of its trade secrets. Use of this information by anyone other than authorized
|
||||
* employees of Tech Soft 3D, Inc. is granted only under a written non-disclosure agreement, expressly prescribing the
|
||||
* scope and manner of such use.
|
||||
*
|
||||
***********************************************************************************************************************/
|
||||
|
||||
#include "entity.h"
|
||||
|
||||
namespace he
|
||||
{
|
||||
Entity::Entity(A3DMiscCascadedAttributes* attrib) : attributes(attrib) {}
|
||||
Entity::~Entity()
|
||||
{
|
||||
if (attributes)
|
||||
{
|
||||
if (A3DMiscCascadedAttributesDelete(attributes) != A3D_SUCCESS)
|
||||
status = 1;
|
||||
}
|
||||
}
|
||||
std::vector<A3DEntity*> Entity::sub_levels() const
|
||||
{
|
||||
return {};
|
||||
}
|
||||
namespace structure
|
||||
{
|
||||
int create_cascaded_attributes(const A3DRootBaseWithGraphics* entity, const A3DMiscCascadedAttributes* parent, A3DMiscCascadedAttributes*& attributes)
|
||||
{
|
||||
if (A3DMiscCascadedAttributesCreate(&attributes) != 0)
|
||||
return 1;
|
||||
if (A3DMiscCascadedAttributesPush(attributes, entity, parent))
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user