void FScriptContextBase::PushScriptPropertyValues(UScriptBlueprintGeneratedClass* Class, const UObject* Obj)
{
	// @todo: optimize this
	for (auto Property : Class->ScriptProperties)
	{
		if (UFloatProperty* FloatProperty = Cast<UFloatProperty>(Property))
		{
			float Value = FloatProperty->GetFloatingPointPropertyValue(Property->ContainerPtrToValuePtr<float>(Obj));
			SetFloatProperty(Property->GetName(), Value);
		}
		else if (UIntProperty* IntProperty = Cast<UIntProperty>(Property))
		{
			int32 Value = IntProperty->GetSignedIntPropertyValue(Property->ContainerPtrToValuePtr<int32>(Obj));
			SetIntProperty(Property->GetName(), Value);
		}
		else if (UBoolProperty* BoolProperty = Cast<UBoolProperty>(Property))
		{
			bool Value = BoolProperty->GetPropertyValue(Property->ContainerPtrToValuePtr<void>(Obj));
			SetBoolProperty(Property->GetName(), Value);
		}
		else if (UObjectProperty* ObjectProperty = Cast<UObjectProperty>(Property))
		{
			UObject* Value = ObjectProperty->GetObjectPropertyValue(Property->ContainerPtrToValuePtr<UObject*>(Obj));
			SetObjectProperty(Property->GetName(), Value);
		}
		else if (UStrProperty* StringProperty = Cast<UStrProperty>(Property))
		{
			FString Value = StringProperty->GetPropertyValue(Property->ContainerPtrToValuePtr<UObject*>(Obj));
			SetStringProperty(Property->GetName(), Value);
		}
	}
}
예제 #2
0
XnStatus XnSensorIRGenerator::Init()
{
	XnStatus nRetVal = XN_STATUS_OK;
	
	nRetVal = XnSensorMapGenerator::Init();
	XN_IS_STATUS_OK(nRetVal);

	nRetVal = SetIntProperty(XN_STREAM_PROPERTY_OUTPUT_FORMAT, XN_OUTPUT_FORMAT_GRAYSCALE16);
	XN_IS_STATUS_OK(nRetVal);

	//Register to map output mode and cropping events
	nRetVal = RegisterToMapOutputModeChange(OnResChangedCallback, this, m_hMapModeCallback);
	XN_IS_STATUS_OK(nRetVal);

	nRetVal = RegisterToCroppingChange(OnResChangedCallback, this, m_hCroppingCallback);
	XN_IS_STATUS_OK(nRetVal);

	// add SXGA 30
	XnMapOutputMode mode;
	mode.nXRes = XN_SXGA_X_RES;
	mode.nYRes = XN_SXGA_Y_RES;
	mode.nFPS = 30;
	nRetVal = m_SupportedModes.AddLast(mode);
	XN_IS_STATUS_OK(nRetVal);

	OnResChanged();
	
	return (XN_STATUS_OK);
}
XnStatus XnSensorDepthGenerator::SetViewPoint(xn::ProductionNode& OtherNode)
{
    if (IsSensorImageNode(OtherNode))
    {
        return SetIntProperty(XN_STREAM_PROPERTY_REGISTRATION, TRUE);
    }
    else
    {
        return XN_STATUS_BAD_PARAM;
    }
}
예제 #4
0
void mitk::Overlay::SetFontSize(int fontSize)
{
  SetIntProperty("Overlay.FontSize",fontSize);
}
XnStatus XnSensorDepthGenerator::ResetViewPoint()
{
    return SetIntProperty(XN_STREAM_PROPERTY_REGISTRATION, FALSE);
}
예제 #6
0
void mitk::Annotation::SetFontSize(int fontSize)
{
  SetIntProperty("FontSize", fontSize);
}
예제 #7
0
bool CConfigFile::SetBoolProperty(std::string section, std::string key, bool value)
{
    return SetIntProperty(section, key, value ? 1 : 0);
}
예제 #8
0
XnStatus XnSensorImageGenerator::SetPowerLineFrequency( XnPowerLineFrequency nFrequency )
{
	return SetIntProperty(XN_STREAM_PROPERTY_FLICKER, nFrequency);
}
예제 #9
0
XnInt32 XnSensorImageGenerator::Set( const XnChar* strCap, XnInt32 nValue )
{
	return SetIntProperty(strCap, nValue);
}
void mitk::ColorBarAnnotation::SetNumberOfLabels(int numberOfLabels)
{
  SetIntProperty("ColorBarAnnotation.NumberOfLabels", numberOfLabels);
}
void mitk::ColorBarAnnotation::SetMaxNumberOfColors(int numberOfColors)
{
  SetIntProperty("ColorBarAnnotation.MaximumNumberOfColors", numberOfColors);
}
void mitk::ColorBarAnnotation::SetOrientation(int orientation)
{
  SetIntProperty("ColorBarAnnotation.Orientation", orientation);
}
예제 #13
0
void mitk::ColorBarOverlay::SetNumberOfLabels(int numberOfLabels)
{
    SetIntProperty("ColorBarOverlay.NumberOfLabels", numberOfLabels);
}
예제 #14
0
void mitk::ColorBarOverlay::SetMaxNumberOfColors(int numberOfColors)
{
    SetIntProperty("ColorBarOverlay.MaximumNumberOfColors", numberOfColors);
}
예제 #15
0
void mitk::ColorBarOverlay::SetOrientation(int orientation)
{
    SetIntProperty("ColorBarOverlay.Orientation", orientation);
}