Class HiddenGearSetDocumentBase
Last update: 16.07.2025Namespace: VM.Managed.DAFUL.GearTrain
Assembly: VMDGearTrain.dll
The hidden gear set document base
public abstract class HiddenGearSetDocumentBase : HiddenDocumentForGearTrain, IObservableObject, IDisposableObject, ILinkable, ILinkContainerEvent, IVerifiable, IEnableManager, IRelatedDocument, IHistorySupport, ITemplateDocument, ITreatValidObject, ISubSystemDocument, IDocumentAnalysis, IDocument3D, IHandledDocument, IDocument, IObject, IEventProvider, IContainer, ILinkContainer, IOwned, IHasID, IDocumentOwner, IInterfaceSupport, IApplyInitialVelocity, IHiddenDocument
Inheritance
object ← ObservableObject ← LinkableBase ← LinkContainer ← Container ← Document ← HandledDocument ← Document3D ← DocumentAnalysis ← SubSystemDocument ← HiddenDocument ← HiddenDocumentForGearTrain ← HiddenGearSetDocumentBase
Derived
HiddenGearSetCrossHelicalDocument, HiddenGearSetCustomDocument, HiddenGearSetCycloidPinDocument, HiddenGearSetDocument, HiddenGearSetInternalDocument, HiddenGearSetPlanetaryDPDocument, HiddenGearSetPlanetaryDocument, HiddenGearSetPlanetaryTSDocument, HiddenGearSetRackAndPinionDocument, HiddenGearSetWormAndWormWheelDocument
Implements
IObservableObject, IDisposableObject, ILinkable, ILinkContainerEvent, IVerifiable, IEnableManager, IRelatedDocument, IHistorySupport, ITemplateDocument, ITreatValidObject, ISubSystemDocument, IDocumentAnalysis, IDocument3D, IHandledDocument, IDocument, IObject, IEventProvider, IContainer, ILinkContainer, IOwned, IHasID, IDocumentOwner, IInterfaceSupport, IApplyInitialVelocity, IHiddenDocument
Inherited Members
HiddenDocumentForGearTrain.Find(string),
HiddenDocumentForGearTrain.CloseDocumentCore(),
HiddenDocumentForGearTrain.CheckActiveDocument(Document3D, Document3D),
HiddenDocument.m_canvas,
HiddenDocument.ClearDocument(),
HiddenDocument.InitializeSimParam(),
HiddenDocument.OnPostMakeDocumentImpl(DocCreateAnalysisInfo),
HiddenDocument.DrawCoordinate(double),
HiddenDocument.HideSubData(string),
HiddenDocument.DrawCoordinateCore(VectorBase, double),
HiddenDocument.CloseDocumentCore(),
HiddenDocument.SetData(XmlNode),
HiddenDocument.FindLocal(string),
HiddenDocument.TargetDesign,
HiddenDocument.TargetDocument,
HiddenDocument.RenderingMode,
SubSystemDocument.OnPostMakeDocumentImpl(DocCreateAnalysisInfo),
SubSystemDocument.OnDeserialization(object),
SubSystemDocument.InitializeSimParam(),
SubSystemDocument.CreateAssemblyImpl(),
SubSystemDocument.RenameEntityImpl(string, ObjectBase),
SubSystemDocument.RegisterAddon(),
SubSystemDocument.FindCategory(string),
SubSystemDocument.InitializeCategoryInfo(string),
SubSystemDocument.PossibleToImport(SubSystemDocument, out string, out string),
SubSystemDocument.PossibleDifferentUnit(SubSystemDocument, out string),
SubSystemDocument.PossibleDifferentUnit(out string),
SubSystemDocument.InitializeInterface(),
SubSystemDocument.SaveTemplateBasedXml(XmlWriter),
SubSystemDocument.SaveTemplateBasedXml(XmlWriter, bool),
SubSystemDocument.LoadTemplateBasedXml(XmlReader),
SubSystemDocument.LoadTemplateBasedXml(XmlReader, bool),
SubSystemDocument.HideObjectInReading(),
SubSystemDocument.SkipObjectInWriting(ObjectBase),
SubSystemDocument.CheckMassPropForCADImport(),
SubSystemDocument.ImportCADBody(BuilderImport[]),
SubSystemDocument.ReplaceCADBody(BuilderImport[]),
SubSystemDocument.GetCADBodyNameAttribute(ref List
Extension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType),
LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType),
LinkPropertyItemCache.GetLinkedObjects
Constructors
HiddenGearSetDocumentBase(UIntPtr)
Initializes a new instance of the
public HiddenGearSetDocumentBase(UIntPtr docCore)
Parameters
docCore UIntPtr
The document handle.
Fields
m_bHideLOA
The LOA hide flag
protected List<bool> m_bHideLOA
Field Value
m_bShow2D
The show2d flag
protected bool m_bShow2D
Field Value
Properties
AddToPropertyAllGear
Gets the flag whether this instance add to property or not.
public virtual bool AddToPropertyAllGear { get; }
Property Value
DoingContactAnalysis
Gets a value indicating contact analysis execute flag.
public static bool DoingContactAnalysis { get; set; }
Property Value
GearSet
Gets or sets the gear set.
public IGearSet GearSet { get; set; }
Property Value
HideBCD
Gets the value whether bcd is hidden or not
protected virtual bool HideBCD { get; }
Property Value
HideLOA
Gets the value whether loa is hidden or not
protected virtual bool HideLOA { get; }
Property Value
NumberOfLOA
Gets number of LOA.
protected virtual int NumberOfLOA { get; }
Property Value
Show2D
Gets a value indicating whether [show2 d].
public bool Show2D { get; }
Property Value
TargetDesign
Gets the target design.
public override IOpenDesigner TargetDesign { get; }
Property Value
IOpenDesigner
_GearSet
Gets or sets the _ gear set.
public Linker<igearset> _GearSet { get; set; }
Property Value
LinkerIGearSet>
Methods
CalculateToothStiffness(IGearSet, List(bool, int, string, string)>)
Calculate tooth stiffness
public static void CalculateToothStiffness(IGearSet gearSet, List(bool, int, string, string)> lstToothInfo)
Parameters
gearSet IGearSet
The gearset
lstToothInfo List(bool, int, string, string)>
The tooth information
CalculateToothStiffness(IGearSet)
Calculate tooth stiffness
public static void CalculateToothStiffness(IGearSet gearSet)
Parameters
gearSet IGearSet
The gearset
CalculateToothStiffnessInContactAnalysis(HiddenGearSetDocumentBase, int)
Calculate tooth stiffness in contact analysis
public static void CalculateToothStiffnessInContactAnalysis(HiddenGearSetDocumentBase docGearset, int nGearIdx)
Parameters
docGearset HiddenGearSetDocumentBase
The gearset hidden document
nGearIdx int
The gear index
CheckToothStiffness(HiddenGearSetDocumentBase)
Check tooth stiffness
public static void CheckToothStiffness(HiddenGearSetDocumentBase docGearset)
Parameters
docGearset HiddenGearSetDocumentBase
The gearset hidden document
CreateAssemblyImpl()
Creates the assembly implementation.
protected override Assembly CreateAssemblyImpl()
Returns
Assembly
Exceptions
CreateStiffness()
Creates the stiffness.
public void CreateStiffness()
DeserializeResult(PropertyGearSetBase, string[], List[], List[], List[])
Deserialize result
public static void DeserializeResult(PropertyGearSetBase pgs, string[] arRsult, List<gearshapebase>[] arInvolutePoints, List<gearshapebase>[] arGraphicInvolutePoints, List<vector>[] arMBCD)
Parameters
The property
arRsult string[]
The result
arInvolutePoints ListGearShapeBase.InvolutePoint>[]
The involute points
arGraphicInvolutePoints ListGearShapeBase.InvolutePoint>[]
The graphic involute points
arMBCD List
The MBCD
DrawCoordinate(double)
Draws the coordinate.
public override void DrawCoordinate(double dIconSize)
Parameters
dIconSize double
Size of the d icon.
DrawLOAForExternal(string, double, double, double, double, OMatrix)
draw loa for external gear.
protected void DrawLOAForExternal(string strCanvasName, double dR1, double dR2, double curCenterY, double preCenterY, OMatrix matO)
Parameters
strCanvasName string
canvas name.
dR1 double
first radius .
dR2 double
second radius.
curCenterY double
current center.
preCenterY double
previous conter.
matO OMatrix
orientation of LOA.
DrawLOAForInternal(string, double, double, double, OMatrix)
draw loa for internal gear.
protected void DrawLOAForInternal(string strCanvasName, double dR1, double dR2, double CenterY, OMatrix matO)
Parameters
strCanvasName string
canvas name.
dR1 double
first radius .
dR2 double
second radius.
CenterY double
center Y.
matO OMatrix
orientation of LOA.
GetCenterY(double[])
Get y coordinate of center.
protected virtual void GetCenterY(double[] ardCenterY)
Parameters
ardCenterY double[]
The y coordinate of center.
GetData(XmlNode)
Gets the analysis document information data.
public override void GetData(XmlNode writer)
Parameters
writer XmlNode
The writer.
Exceptions
GetExternalState(bool[])
Get external state.
protected virtual void GetExternalState(bool[] arbExternal)
Parameters
arbExternal bool[]
The exteranl array.
GetInfoFromDocumentPropertyGrid(XmlDocument, XmlDocument)
Gets the information from document property grid.
public override void GetInfoFromDocumentPropertyGrid(XmlDocument xmlTarget, XmlDocument xmlTool)
Parameters
xmlTarget XmlDocument
The XML target.
xmlTool XmlDocument
The XML tool.
LinkRequestDestroying(object, LinkEventArgs)
The destroying event occured from the linked object.
protected override void LinkRequestDestroying(object objNotifier, LinkEventArgs arg)
Parameters
objNotifier object
The linked object.
arg LinkEventArgs
The destroy event information.
LinkRequestUpdate(object, LinkEventArgs)
The update event occured from the linked object.
protected override void LinkRequestUpdate(object objNotifier, LinkEventArgs arg)
Parameters
objNotifier object
The linked object.
arg LinkEventArgs
The update event information.
MakeXmlForDocumentPropertyGrid(XmlDocument, ref string)
Makes the XML for document property grid.
public override string MakeXmlForDocumentPropertyGrid(XmlDocument xmlDom, ref string strGroupName)
Parameters
xmlDom XmlDocument
The XML DOM.
strGroupName string
Name of the string group.
Returns
MakeXmlForDocumentPropertyGridForLOA(XmlDocument, ref string, StringBuilder)
Makes the LOA XML for document property grid.
protected virtual void MakeXmlForDocumentPropertyGridForLOA(XmlDocument xmlDom, ref string strGroupName, StringBuilder sb)
Parameters
xmlDom XmlDocument
The XML DOM.
strGroupName string
Name of the string group.
The string builder.
ModifiedToothStiffness(GearGeometryInfo)
Whether this instance is modified by tooth stiffness or not.
public (bool, PseudoGearGeometry) ModifiedToothStiffness(GearGeometryInfo gearGeometryInfo)
Parameters
gearGeometryInfo GearGeometryInfo
The gear geometry information
Returns
RefreshGearBodyInNav()
Refreshes the gear body in nav.
public void RefreshGearBodyInNav()
SerializeResult(PropertyGearSetBase, ref string[], ref List[], ref List[], ref List[])
Serialize result
public static void SerializeResult(PropertyGearSetBase pgs, ref string[] arRsult, ref List<gearshapebase>[] arInvolutePoints, ref List<gearshapebase>[] arGraphicInvolutePoints, ref List<vector>[] arMBCD)
Parameters
The gear property
arRsult string[]
The result
arInvolutePoints ListGearShapeBase.InvolutePoint>[]
The involute points
arGraphicInvolutePoints ListGearShapeBase.InvolutePoint>[]
The graphic involute points
arMBCD List
The MBCD
SetData(XmlNode)
Sets the analysis document information data.
public override void SetData(XmlNode reader)
Parameters
reader XmlNode
The reader.
Exceptions
Show2Dimension(bool)
Show2s the dimension.
public void Show2Dimension(bool isRefresh)
Parameters
isRefresh bool
if set to true [is refresh].
Show2DimensionCore(int, bool[], double[], double[])
Show2s the dimension core.
protected virtual void Show2DimensionCore(int nCount, bool[] ardExternal, double[] ardCenterY, double[] ardBCDR)
Parameters
nCount int
the count.
ardExternal bool[]
external state array.
ardCenterY double[]
center array.
ardBCDR double[]
BCDR array.