当前位置: 首页>>代码示例>>C#>>正文


C# DataOutputStream.writeFloat方法代码示例

本文整理汇总了C#中DISnet.DataStreamUtilities.DataOutputStream.writeFloat方法的典型用法代码示例。如果您正苦于以下问题:C# DataOutputStream.writeFloat方法的具体用法?C# DataOutputStream.writeFloat怎么用?C# DataOutputStream.writeFloat使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在DISnet.DataStreamUtilities.DataOutputStream的用法示例。


在下文中一共展示了DataOutputStream.writeFloat方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: marshal

 ///<summary>
 ///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
 ///</summary>
 public void marshal(DataOutputStream dos)
 {
     try
     {
         dos.writeFloat((float)_powerSetting);
         dos.writeFloat((float)_engineRpm);
     } // end try
     catch(Exception e)
     {
         Trace.WriteLine(e);
         Trace.Flush();
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:16,代码来源:PropulsionSystemData.cs

示例2: marshal

        ///<summary>
        ///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
        ///</summary>
        public new void marshal(DataOutputStream dos)
        {
            base.marshal(dos);
            try
            {
                _radioEntityType.marshal(dos);
                dos.writeByte((byte)_transmitState);
                dos.writeByte((byte)_inputSource);
                dos.writeUshort((ushort)_padding1);
                _antennaLocation.marshal(dos);
                _relativeAntennaLocation.marshal(dos);
                dos.writeUshort((ushort)_antennaPatternType);
                dos.writeUshort((ushort)_antennaPatternList.Count);
                dos.writeUlong((ulong)_frequency);
                dos.writeFloat((float)_transmitFrequencyBandwidth);
                dos.writeFloat((float)_power);
                _modulationType.marshal(dos);
                dos.writeUshort((ushort)_cryptoSystem);
                dos.writeUshort((ushort)_cryptoKeyId);
                dos.writeByte((byte)_modulationParametersList.Count);
                dos.writeUshort((ushort)_padding2);
                dos.writeByte((byte)_padding3);

                for(int idx = 0; idx < _modulationParametersList.Count; idx++)
                {
                    Vector3Float aVector3Float = (Vector3Float)_modulationParametersList[idx];
                    aVector3Float.marshal(dos);
                } // end of list marshalling

                for(int idx = 0; idx < _antennaPatternList.Count; idx++)
                {
                    Vector3Float aVector3Float = (Vector3Float)_antennaPatternList[idx];
                    aVector3Float.marshal(dos);
                } // end of list marshalling

            } // end try
            catch(Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:45,代码来源:TransmitterPdu.cs

示例3: marshal

 ///<summary>
 ///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
 ///</summary>
 public void marshal(DataOutputStream dos)
 {
     try
     {
         dos.writeFloat((float)_x);
         dos.writeFloat((float)_y);
         dos.writeFloat((float)_z);
     } // end try
     catch(Exception e)
     {
         Trace.WriteLine(e);
         Trace.Flush();
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:17,代码来源:AngularVelocityVector.cs

示例4: marshal

 ///<summary>
 ///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
 ///</summary>
 public new void marshal(DataOutputStream dos)
 {
     base.marshal(dos);
     try
     {
         _issuingEntityID.marshal(dos);
         _collidingEntityID.marshal(dos);
         _collisionEventID.marshal(dos);
         dos.writeShort((short)_pad);
         _contactVelocity.marshal(dos);
         dos.writeFloat((float)_mass);
         _location.marshal(dos);
         dos.writeFloat((float)_collisionResultXX);
         dos.writeFloat((float)_collisionResultXY);
         dos.writeFloat((float)_collisionResultXZ);
         dos.writeFloat((float)_collisionResultYY);
         dos.writeFloat((float)_collisionResultYZ);
         dos.writeFloat((float)_collisionResultZZ);
         _unitSurfaceNormal.marshal(dos);
         dos.writeFloat((float)_coefficientOfRestitution);
     } // end try
     catch(Exception e)
     {
         Trace.WriteLine(e);
         Trace.Flush();
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:30,代码来源:CollisionElasticPdu.cs

示例5: marshal

 ///<summary>
 ///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
 ///</summary>
 public void marshal(DataOutputStream dos)
 {
     try
     {
         dos.writeShort((short)_currentShaftRPMs);
         dos.writeShort((short)_orderedShaftRPMs);
         dos.writeFloat((float)_shaftRPMRateOfChange);
     } // end try
     catch(Exception e)
     {
         Trace.WriteLine(e);
         Trace.Flush();
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:17,代码来源:ShaftRPMs.cs

示例6: marshal

 ///<summary>
 ///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
 ///</summary>
 public new void marshal(DataOutputStream dos)
 {
     base.marshal(dos);
     try
     {
         _designatingEntityID.marshal(dos);
         dos.writeUshort((ushort)_codeName);
         _designatedEntityID.marshal(dos);
         dos.writeUshort((ushort)_designatorCode);
         dos.writeFloat((float)_designatorPower);
         dos.writeFloat((float)_designatorWavelength);
         _designatorSpotWrtDesignated.marshal(dos);
         _designatorSpotLocation.marshal(dos);
         dos.writeByte((byte)_deadReckoningAlgorithm);
         dos.writeUshort((ushort)_padding1);
         dos.writeByte((byte)_padding2);
         _entityLinearAcceleration.marshal(dos);
     } // end try
     catch(Exception e)
     {
         Trace.WriteLine(e);
         Trace.Flush();
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:27,代码来源:DesignatorPdu.cs

示例7: marshal

 ///<summary>
 ///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
 ///</summary>
 public void marshal(DataOutputStream dos)
 {
     try
     {
         _beamDirection.marshal(dos);
         dos.writeFloat((float)_azimuthBeamwidth);
         dos.writeFloat((float)_referenceSystem);
         dos.writeShort((short)_padding1);
         dos.writeByte((byte)_padding2);
         dos.writeFloat((float)_ez);
         dos.writeFloat((float)_ex);
         dos.writeFloat((float)_phase);
     } // end try
     catch(Exception e)
     {
         Trace.WriteLine(e);
         Trace.Flush();
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:22,代码来源:BeamAntennaPattern.cs

示例8: marshal

        ///<summary>
        ///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
        ///</summary>
        public new void marshal(DataOutputStream dos)
        {
            base.marshal(dos);
            try
            {
                dos.writeFloat((float)_fieldScale);
                dos.writeFloat((float)_fieldOffset);
                dos.writeUshort((ushort)_dataValues.Count);

                for(int idx = 0; idx < _dataValues.Count; idx++)
                {
                    TwoByteChunk aTwoByteChunk = (TwoByteChunk)_dataValues[idx];
                    aTwoByteChunk.marshal(dos);
                } // end of list marshalling

            } // end try
            catch(Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:25,代码来源:GridAxisRecordRepresentation1.cs

示例9: marshal

 ///<summary>
 ///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
 ///</summary>
 public new void marshal(DataOutputStream dos)
 {
     base.marshal(dos);
     try
     {
         dos.writeUshort((ushort)_receiverState);
         dos.writeUshort((ushort)_padding1);
         dos.writeFloat((float)_receivedPoser);
         _transmitterEntityId.marshal(dos);
         dos.writeUshort((ushort)_transmitterRadioId);
     } // end try
     catch(Exception e)
     {
         Trace.WriteLine(e);
         Trace.Flush();
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:20,代码来源:ReceiverPdu.cs

示例10: marshal

 ///<summary>
 ///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
 ///</summary>
 public void marshal(DataOutputStream dos)
 {
     try
     {
        dos.writeUshort((ushort)_activeEmissionParameterIndex);
        dos.writeUshort((ushort)_scanPattern);
        dos.writeFloat((float)_beamCenterAzimuth);
        dos.writeFloat((float)_azimuthalBeamwidth);
        dos.writeFloat((float)_beamCenterDE);
        dos.writeFloat((float)_deBeamwidth);
     } // end try
     catch(Exception e)
     {
       Trace.WriteLine(e);
       Trace.Flush();
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:20,代码来源:AcousticBeamFundamentalParameter.cs

示例11: marshal

 ///<summary>
 ///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
 ///</summary>
 public void marshal(DataOutputStream dos)
 {
     try
     {
        dos.writeFloat((float)_erp);
        dos.writeFloat((float)_frequency);
        dos.writeFloat((float)_pgrf);
        dos.writeFloat((float)_pulseWidth);
        dos.writeUint((uint)_burstLength);
        dos.writeByte((byte)_applicableModes);
        dos.writeUshort((ushort)_pad2);
        dos.writeByte((byte)_pad3);
     } // end try
     catch(Exception e)
     {
       Trace.WriteLine(e);
       Trace.Flush();
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:22,代码来源:FundamentalParameterDataIff.cs

示例12: marshal

        ///<summary>
        ///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
        ///</summary>
        public new void marshal(DataOutputStream dos)
        {
            base.marshal(dos);
            try
            {
               dos.writeUshort((ushort)_site);
               dos.writeUshort((ushort)_application);
               dos.writeUshort((ushort)_entity);
               dos.writeByte((byte)_forceId);
               dos.writeByte((byte)_articulationParameters.Count);
               dos.writeByte((byte)_entityKind);
               dos.writeByte((byte)_domain);
               dos.writeUshort((ushort)_country);
               dos.writeByte((byte)_category);
               dos.writeByte((byte)_subcategory);
               dos.writeByte((byte)_specific);
               dos.writeByte((byte)_extra);
               dos.writeByte((byte)_altEntityKind);
               dos.writeByte((byte)_altDomain);
               dos.writeUshort((ushort)_altCountry);
               dos.writeByte((byte)_altCategory);
               dos.writeByte((byte)_altSubcategory);
               dos.writeByte((byte)_altSpecific);
               dos.writeByte((byte)_altExtra);
               dos.writeFloat((float)_xVelocity);
               dos.writeFloat((float)_yVelocity);
               dos.writeFloat((float)_zVelocity);
               dos.writeDouble((double)_xLocation);
               dos.writeDouble((double)_yLocation);
               dos.writeDouble((double)_zLocation);
               dos.writeFloat((float)_psi);
               dos.writeFloat((float)_theta);
               dos.writeFloat((float)_phi);
               dos.writeUint((uint)_entityAppearance);
               dos.writeByte((byte)_deadReckoningAlgorithm);

               for(int idx = 0; idx < _otherParameters.Length; idx++)
               {
               dos.writeByte(_otherParameters[idx]);
               } // end of array marshaling

               dos.writeFloat((float)_xAcceleration);
               dos.writeFloat((float)_yAcceleration);
               dos.writeFloat((float)_zAcceleration);
               dos.writeFloat((float)_xAngularVelocity);
               dos.writeFloat((float)_yAngularVelocity);
               dos.writeFloat((float)_zAngularVelocity);

               for(int idx = 0; idx < _marking.Length; idx++)
               {
               dos.writeByte(_marking[idx]);
               } // end of array marshaling

               dos.writeUint((uint)_capabilities);

               for(int idx = 0; idx < _articulationParameters.Count; idx++)
               {
            ArticulationParameter aArticulationParameter = (ArticulationParameter)_articulationParameters[idx];
            aArticulationParameter.marshal(dos);
               } // end of list marshalling

            } // end try
            catch(Exception e)
            {
              Trace.WriteLine(e);
              Trace.Flush();
            }
        }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:71,代码来源:FastEntityStatePdu.cs

示例13: marshal

 ///<summary>
 ///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
 ///</summary>
 public void marshal(DataOutputStream dos)
 {
     try
     {
         dos.writeFloat((float)_frequency);
         dos.writeFloat((float)_frequencyRange);
         dos.writeFloat((float)_effectiveRadiatedPower);
         dos.writeFloat((float)_pulseRepetitionFrequency);
         dos.writeFloat((float)_pulseWidth);
         dos.writeFloat((float)_beamAzimuthCenter);
         dos.writeFloat((float)_beamAzimuthSweep);
         dos.writeFloat((float)_beamElevationCenter);
         dos.writeFloat((float)_beamElevationSweep);
         dos.writeFloat((float)_beamSweepSync);
     } // end try
     catch(Exception e)
     {
         Trace.WriteLine(e);
         Trace.Flush();
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:24,代码来源:FundamentalParameterData.cs

示例14: marshal

 ///<summary>
 ///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
 ///</summary>
 public new void marshal(DataOutputStream dos)
 {
     base.marshal(dos);
     try
     {
        _issuingEntityID.marshal(dos);
        _collidingEntityID.marshal(dos);
        _eventID.marshal(dos);
        dos.writeByte((byte)_collisionType);
        dos.writeByte((byte)_pad);
        _velocity.marshal(dos);
        dos.writeFloat((float)_mass);
        _location.marshal(dos);
     } // end try
     catch(Exception e)
     {
       Trace.WriteLine(e);
       Trace.Flush();
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:23,代码来源:CollisionPdu.cs

示例15: marshal

 ///<summary>
 ///Marshal the data to the DataOutputStream.  Note: Length needs to be set before calling this method
 ///</summary>
 public new void marshal(DataOutputStream dos)
 {
     base.marshal(dos);
     try
     {
         _munitionID.marshal(dos);
         _eventID.marshal(dos);
         dos.writeUint((uint)_fireMissionIndex);
         _locationInWorldCoordinates.marshal(dos);
         _burstDescriptor.marshal(dos);
         _velocity.marshal(dos);
         dos.writeFloat((float)_range);
     } // end try
     catch(Exception e)
     {
         Trace.WriteLine(e);
         Trace.Flush();
     }
 }
开发者ID:mcgredonps,项目名称:open-dis-csharp,代码行数:22,代码来源:FirePdu.cs


注:本文中的DISnet.DataStreamUtilities.DataOutputStream.writeFloat方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。