Example #1
0
OVisibilityProperty
CreateVisibilityProperty( OObject & iObject, uint32_t iTimeSamplingID)
{
    // If client code calls this function twice they'll get an exception.
    // We aren't currently being nice and returning the existing property.
    OVisibilityProperty visibilityProperty( iObject.getProperties(),
                                            kVisibilityPropertyName,
                                            iTimeSamplingID );

    return visibilityProperty;
}
void RKComponent::setVisible (bool visible) {
	RK_TRACE (PLUGIN);

	visibilityProperty ()->setBoolValue (visible);
}