/**************************************************************************** * Copyright 2019 Nreal Techonology Limited. All rights reserved. * * This file is part of NRSDK. * * https://www.nreal.ai/ * *****************************************************************************/ namespace NRKernal.NREditor { /// A nr trackable accessor. internal abstract class NRTrackableAccessor { /// Target for the. protected NRTrackableBehaviour m_Target; /// Applies the data properties. public abstract void ApplyDataProperties(); /// Applies the data appearance. public abstract void ApplyDataAppearance(); } /// A nr accessor factory. internal class NRAccessorFactory { /// Creates a new NRTrackableAccessor. /// Target for the. /// A NRTrackableAccessor. public static NRTrackableAccessor Create(NRTrackableBehaviour target) { if (target is NRTrackableImageBehaviour) { return new NRImageTargetAccessor((NRTrackableImageBehaviour)target); } NRDebugger.Error(target.GetType().ToString() + "is not derived from NRTrackableImageBehaviour"); return null; } } }