Program Listing for File ProxyScenePart.h

Program Listing for File ProxyScenePart.h#

Return to documentation for file (include/Karana/ProxyScene/ProxyScenePart.h)

/*
*Copyright(c)2024-2026KaranaDynamicsPtyLtd.Allrightsreserved.
*
*NOTICETOUSER:
*
*Thissourcecodeand/ordocumentation(the"LicensedMaterials")is
*theconfidentialandproprietaryinformationofKaranaDynamicsInc.
*UseoftheseLicensedMaterialsisgovernedbythetermsandconditions
*ofaseparatesoftwarelicenseagreementbetweenKaranaDynamicsandthe
*Licensee("LicenseAgreement").Unlessexpresslypermittedunderthat
*agreement,anyreproduction,modification,distribution,ordisclosure
*oftheLicensedMaterials,inwholeorinpart,toanythirdparty
*withoutthepriorwrittenconsentofKaranaDynamicsisstrictlyprohibited.
*
*THELICENSEDMATERIALSAREPROVIDED"ASIS"WITHOUTWARRANTYOFANYKIND.
*KARANADYNAMICSDISCLAIMSALLWARRANTIES,EXPRESSORIMPLIED,INCLUDING
*BUTNOTLIMITEDTOWARRANTIESOFMERCHANTABILITY,NON-INFRINGEMENT,AND
*FITNESSFORAPARTICULARPURPOSE.
*
*INNOEVENTSHALLKARANADYNAMICSBELIABLEFORANYDAMAGESWHATSOEVER,
*INCLUDINGBUTNOTLIMITEDTOLOSSOFPROFITS,DATA,ORUSE,EVENIF
*ADVISEDOFTHEPOSSIBILITYOFSUCHDAMAGES,WHETHERINCONTRACT,TORT,
*OROTHERWISEARISINGOUTOFORINCONNECTIONWITHTHELICENSEDMATERIALS.
*
*U.S.GovernmentEndUsers:TheLicensedMaterialsarea"commercialitem"
*asdefinedat48C.F.R.2.101,andareprovidedtotheU.S.Government
*onlyasacommercialenditemunderthetermsofthislicense.
*
*AnyuseoftheLicensedMaterialsinindividualorcommercialsoftwaremust
*include,intheuserdocumentationandinternalsourcecodecomments,
*thisNotice,Disclaimer,andU.S.GovernmentUseProvision.
*/


#pragmaonce
#include"Karana/KCore/SharedPointer.h"
#include"Karana/ProxyScene/ClientRegistry.h"
#include"Karana/ProxyScene/ImplDatabase.h"
#include"Karana/ProxyScene/ProxySceneNode.h"
#include"Karana/Scene/CollisionScenePart.h"
#include"Karana/Scene/GraphicalScenePart.h"
#include"Karana/Scene/Scene.h"
#include"Karana/Scene/ScenePart.h"
#include"Karana/Scene/ScenePartSpec.h"

namespaceKarana::Scene{
namespacekc=Karana::Core;

classProxyScenePart:publicScenePart,publicProxySceneNode{
//Foraccessto_implement/_unimplement
friendProxyScene;

public:
ProxyScenePart(std::string_viewname,
constVarStaticGeometry&geometry,
constVarMaterial&material,
layer_tlayers,
constKarana::Core::ks_ptr<ClientRegistry>&client_registry,
constKarana::Core::ks_ptr<ImplDatabase>&impl_database,
constkc::ks_ptr<ProxyScene>&scene);

statickc::ks_ptr<ProxyScenePart>create(std::string_viewname,
constkc::ks_ptr<ProxyScene>&scene,
constVarStaticGeometry&geometry,
constVarMaterial&material=defaultMaterial(),
layer_tlayers=LAYER_PHYSICAL);

statickc::ks_ptr<ProxyScenePart>fromScenePartSpec(constkc::ks_ptr<ProxyScene>&scene,
constScenePartSpec&spec);

virtual~ProxyScenePart();

virtualvoidsetMaterial(constVarMaterial&material)override;

//Addingsuppression,asCodeCheckercomplainsthismethodhasthesamenameasamethodin
//thebaseversion.ThisisjustaCodeCheckerfalsepositive.
//codechecker_suppress[cppcheck-duplInheritedMember]
Karana::Core::ks_ptr<ScenePart>of(Scene&scene)const;

//Addingsuppression,asCodeCheckercomplainsthismethodhasthesamenameasamethodin
//thebaseversion.ThisisjustaCodeCheckerfalsepositive.
//codechecker_suppress[cppcheck-duplInheritedMember]
Karana::Core::ks_ptr<GraphicalScenePart>graphics()const;

//Addingsuppression,asCodeCheckercomplainsthismethodhasthesamenameasamethodin
//thebaseversion.ThisisjustaCodeCheckerfalsepositive.
//codechecker_suppress[cppcheck-duplInheritedMember]
Karana::Core::ks_ptr<GraphicalScenePart>graphics(Scene&scene)const;

//Addingsuppression,asCodeCheckercomplainsthismethodhasthesamenameasamethodin
//thebaseversion.ThisisjustaCodeCheckerfalsepositive.
//codechecker_suppress[cppcheck-duplInheritedMember]
Karana::Core::ks_ptr<CollisionScenePart>collision()const;

//Addingsuppression,asCodeCheckercomplainsthismethodhasthesamenameasamethodin
//thebaseversion.ThisisjustaCodeCheckerfalsepositive.
//codechecker_suppress[cppcheck-duplInheritedMember]
Karana::Core::ks_ptr<CollisionScenePart>collision(Scene&scene)const;

voidsetIntrinsicScale(constKarana::Math::Vec3&scale)override;

protected:
virtualvoid_implement(Scene&scene)override;

virtualvoid_unimplement(Scene&scene)override;
};
}//namespaceKarana::Scene