Skip to content

Commit

Permalink
Merge pull request #58 from mvrdevelopment/Bug-fix-Missing-API-IGdtfS…
Browse files Browse the repository at this point in the history
…ubPhysicalUnit

Bug-Fix-55#-Missing-API-IGdtfSubPhysical
  • Loading branch information
ILane-VW authored Oct 7, 2024
2 parents 6b08589 + a2daa6b commit 550f67f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/Implementation/CGdtfSubPhysicalUnit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@ VectorworksMVR::VCOMError VectorworksMVR::CGdtfSubPhysicalUnitImpl::GetPhysicalT
return kVCOMError_NoError;
}

VectorworksMVR::VCOMError VectorworksMVR::CGdtfSubPhysicalUnitImpl::GetPhysicalUnit(GdtfDefines::EGdtfPhysicalUnit& unit)
{
// Check Pointer
if ( ! fSubPhysicalUnit) return kVCOMError_NotInitialized;

unit = fSubPhysicalUnit->GetPhysicalUnit();
return kVCOMError_NoError;
}

VectorworksMVR::VCOMError VectorworksMVR::CGdtfSubPhysicalUnitImpl::SetType(GdtfDefines::EGdtfSubPhysicalUnitType type)
{
// Check Pointer
Expand All @@ -64,6 +73,16 @@ VectorworksMVR::VCOMError VectorworksMVR::CGdtfSubPhysicalUnitImpl::SetPhysicalF
return kVCOMError_NoError;
}

VectorworksMVR::VCOMError VectorworksMVR::CGdtfSubPhysicalUnitImpl::SetPhysicalUnit(GdtfDefines::EGdtfPhysicalUnit& unit)
{
// Check Pointer
if( ! fSubPhysicalUnit) return kVCOMError_NotInitialized;

fSubPhysicalUnit->SetPhysicalUnit(unit);

return kVCOMError_NoError;
}

VectorworksMVR::VCOMError VectorworksMVR::CGdtfSubPhysicalUnitImpl::SetPhysicalTo(double physicalTo)
{
// Check Pointer
Expand Down
2 changes: 2 additions & 0 deletions src/Implementation/CGdtfSubPhysicalUnit.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ namespace VectorworksMVR
virtual VCOMError VCOM_CALLTYPE GetType(GdtfDefines::EGdtfSubPhysicalUnitType& type);
virtual VCOMError VCOM_CALLTYPE GetPhysicalFrom(double& physicalFrom);
virtual VCOMError VCOM_CALLTYPE GetPhysicalTo(double& physicalTo);
virtual VCOMError VCOM_CALLTYPE GetPhysicalUnit(GdtfDefines::EGdtfPhysicalUnit& unit);

virtual VCOMError VCOM_CALLTYPE SetType(GdtfDefines::EGdtfSubPhysicalUnitType type);
virtual VCOMError VCOM_CALLTYPE SetPhysicalFrom(double physicalFrom);
virtual VCOMError VCOM_CALLTYPE SetPhysicalTo(double physicalTo);
virtual VCOMError VCOM_CALLTYPE SetPhysicalUnit(GdtfDefines::EGdtfPhysicalUnit& unit);

virtual VCOMError VCOM_CALLTYPE BindToObject(void* objAddr);
virtual void* VCOM_CALLTYPE GetBoundObject();
Expand Down
2 changes: 2 additions & 0 deletions src/Include/IMediaRessourceVectorInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -521,10 +521,12 @@ namespace VectorworksMVR
virtual VCOMError VCOM_CALLTYPE GetType(GdtfDefines::EGdtfSubPhysicalUnitType& type) = 0;
virtual VCOMError VCOM_CALLTYPE GetPhysicalFrom(double& physicalFrom) = 0;
virtual VCOMError VCOM_CALLTYPE GetPhysicalTo(double& physicalTo) = 0;
virtual VCOMError VCOM_CALLTYPE GetPhysicalUnit(GdtfDefines::EGdtfPhysicalUnit& unit) = 0;

virtual VCOMError VCOM_CALLTYPE SetType(GdtfDefines::EGdtfSubPhysicalUnitType type) = 0;
virtual VCOMError VCOM_CALLTYPE SetPhysicalFrom(double physicalFrom) = 0;
virtual VCOMError VCOM_CALLTYPE SetPhysicalTo(double physicalTo) = 0;
virtual VCOMError VCOM_CALLTYPE SetPhysicalUnit(GdtfDefines::EGdtfPhysicalUnit& unit) = 0;

virtual VCOMError VCOM_CALLTYPE BindToObject(void* objAddr) = 0;
virtual void* VCOM_CALLTYPE GetBoundObject() = 0;
Expand Down

0 comments on commit 550f67f

Please sign in to comment.